This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 112e. See for the official list.


1689. Syntactic nonterminal for operand of alignas

Section: 9.12.1  [dcl.attr.grammar]     Status: C++14     Submitter: Richard Smith     Date: 2013-05-26

[Moved to DR at the February, 2014 meeting.]

Issue 1323 dealt with correcting the specification of the operand of alignas, which was originally given as the nonexistent term alignment-expression. It was corrected editorially to match the use of assignment-expression in 9.12.2 [dcl.align].

In 9.12.2 [dcl.align] paragraph 2, the expression is semantically constrained to be an integral constant expression. Since a constant-expression is syntactically a conditional-expression rather than an assignment-expression, it would probably make sense to change the syntactic nonterminal for the operand of alignas to be either a constant-expression or a conditional-expression.

Proposed resolution (November, 2013):

  1. Change 9.12.1 [dcl.attr.grammar] paragraph 1 as follows:

  2. Change 9.12.2 [dcl.align] paragraph 2 as follows:

  3. When the alignment-specifier is of the form alignas( assignment-expression constant-expression ):