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


2113. Incompete specification of types for declarators

Section: 9.3.4  [dcl.meaning]     Status: CD4     Submitter: Richard Smith     Date: 2015-04-08

[Adopted at the February, 2016 meeting.]

According to 9.3.4 [dcl.meaning]

A static, thread_local, extern, register, mutable, friend, inline, virtual, or typedef specifier applies directly to each declarator-id in an init-declarator-list; the type specified for each declarator-id depends on both the decl-specifier-seq and its declarator.

This list is missing constexpr and explicit. Also, this should apply, but doesn't, to member-declarator-lists.

Proposed resolution (September, 2015):

Change 9.3.4 [dcl.meaning] paragraph 2 as follows:

A static, thread_local, extern, register, mutable, friend, inline, virtual, constexpr, explicit, or typedef specifier applies directly to each declarator-id in an init-declarator-list or member-declarator-list; the type specified for each declarator-id depends on both the decl-specifier-seq and its declarator.