Title
Attributes for asm-definition
Status
c++17
Section
9.10 [dcl.asm]
Submitter
Richard Smith

Created on 2016-05-04.00:00:00 last changed 36 months ago

Messages

Date: 2017-01-15.00:00:00

Proposed resolution (January, 2017):

Change 9.10 [dcl.asm] paragraph 1 as follows:

An asm declaration has the form

    asm-definition:
      attribute-specifier-seqopt asm ( string-literal ) ;

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]

Date: 2016-12-15.00:00:00

Notes from the December, 2016 teleconference:

The omission seems to have been an oversight that should be corrected.

Date: 2017-02-15.00:00:00

[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(...); 
History
Date User Action Args
2018-02-27 00:00:00adminsetstatus: tentatively ready -> c++17
2017-02-06 00:00:00adminsetmessages: + msg5737
2017-02-06 00:00:00adminsetmessages: + msg5736
2016-05-04 00:00:00admincreate