Movatterモバイル変換


[0]ホーム

URL:


Issue 2205 - WG21 CWG Issues
Title
Restrictions on use of alignas
Status
c++17
Section
9.13.1 [dcl.attr.grammar]
Submitter
Richard Smith

Created on2015-11-30.00:00:00 last changed96 months ago

Messages

msg5716 (view)
Date: 2016-11-15.00:00:00

Proposed resolution (November, 2016):

Change 9.13.1 [dcl.attr.grammar] paragraph 5 as follows:

Eachattribute-specifier-seq is said toappertain to someentity or statement, identified by the syntactic context where it appears(Clause 8 [stmt], 9.1 [dcl.pre],9.3 [dcl.decl]). If anattribute-specifier-seq thatappertains to some entity or statement contains anattributeoralignment-specifier that is not allowed to apply tothat entity or statement, the program is ill-formed. Ifanattribute-specifier-seq appertains to a friend declaration(11.8.4 [class.friend]), that declaration shall be adefinition. Noattribute-specifier-seq shall appertain to anexplicit instantiation (13.9.3 [temp.explicit]).
msg5715 (view)
Date: 2017-02-15.00:00:00

[Adopted at the February/March, 2017 meeting.]

According to 9.13.1 [dcl.attr.grammar] paragraph 5, a program isill-formed if anattribute appertains to an entity or statement towhich it is not allowed to apply. Presumably analignment-specifiershould have the same restriction.

History
DateUserActionArgs
2018-02-27 00:00:00adminsetstatus: ready -> c++17
2017-02-06 00:00:00adminsetmessages: +msg5716
2015-11-30 00:00:00admincreate

[8]ページ先頭

©2009-2026 Movatter.jp