Proposed resolution (January, 2017): Change 9.11 [dcl.asm] paragraph 1 as follows: An asm declaration has the form The asm declaration is conditionally-supported; its meaning is
implementation-defined. The optional attribute-specifier-seq in
an asm-definition appertains to the asm declaration.
[Note: Typically it is used to pass information through the
implementation to an assembler. —end note]
asm-definition:
attribute-specifier-seqopt asm ( string-literal ) ;
[Adopted at the February/March, 2017 meeting.] There does not seem to be a good reason not to permit attributes on
an asm declaration. This would be handy for things like:
[[vendor::asm_syntax("intel")]] asm(...);