CWG Issue 1036 (original) (raw)
This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 118e. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.
2025-11-05
1036. Alignment attribute in an exception-declaration
Section: 9.13.2 [dcl.align]Status: C++11Submitter: Daveed VandevoordeDate: 2010-02-26
[Voted into the WP at the November, 2010 meeting.]
The Standard explicitly bans alignment attributes for function parameters (9.13.2 [dcl.align] paragraph 1), but it is silent regarding the “parameter” of an exception handler. This should be clarified one way or the other.
Proposed resolution (October, 2010):
Change 9.13.2 [dcl.align] paragraph 1 as follows:
...The attribute may be followed by an ellipsis. The attribute may be applied to a variable
that is neither a function parameter nor declared with the register storage class specifier and to a class data member that is not a bit-fieldor to a class data member, but it shall not be applied to a bit-field, a function parameter, the formal parameter of a catch clause (14.4 [except.handle]), or a variable declared with the registerstorage class specifier. The attribute may also be applied to the declaration of a class or enumeration type.