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

2024-12-19


940. Global anonymous unions

Section: 9.2.2  [dcl.stc]     Status: CD2     Submitter: UK     Date: 14 July, 2009

N2800 comment UK 85

[Voted into WP at October, 2009 meeting.]

9.2.2 [dcl.stc] paragraph 1 refers to “global anonymous unions.” This reference should include anonymous unions declared in a named namespace, not just in global scope (cf 11.5 [class.union] paragraph 3).

Proposed resolution (September, 2009):

Change 9.2.2 [dcl.stc] paragraph 1 as follows:

If a storage-class-specifier appears in a decl-specifier-seq, there can be no typedef specifier in the same decl-specifier-seq and the init-declarator-list of the declaration shall not be empty (except for global an anonymous unions declared in a named namespace or in the global namespace, which shall be declared static (9.5))...