This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 118b. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2025-09-28


3024. Alignment of references

Section: 9.13.2  [dcl.align]     Status: open     Submitter: Brian Bi     Date: 2025-05-02

(From submission #703.)

Per 9.13.2 [dcl.align] paragraph 1, an alignment-specifier may be applied to a reference. However, it is unclear what "alignment requirements for a reference" actually means. There is implementation divergence

Suggested resolution:

Change in 9.13.2 [dcl.align] paragraph 1 as follows:

An alignment-specifier may be applied to a variable or to a class non-static data member, but it shall not be applied to a reference, a bit-field, a function parameter, or an exception-declaration (14.4 [except.handle]). An alignment-specifier may also be applied to the declaration of a class (in an elaborated-type-specifier (9.2.9.5 [dcl.type.elab]) or class-head (Clause 11 [class] 11.1 [class.pre]), respectively). An alignment-specifier with an ellipsis is a pack expansion (13.7.4 [temp.variadic]).