CWG Issue 1528 (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


1528. Repeated _cv-qualifier_s in declarators

Section: 9.3 [dcl.decl]Status: CD3Submitter: Richard SmithDate: 2012-07-23

[Moved to DR at the April, 2013 meeting.]

There is no restriction against repeated _cv-qualifier_s in declarators, although there is (in 9.2.9 [dcl.type] paragraph 2) for those appearing in a decl-specifier-seq. However, most or all current implementations reject such code. Is a change needed?

Proposed resolution (October, 2012):

Change 9.2.9.2 [dcl.type.cv] paragraph 1 as follows:

There are two _cv-qualifier_s, const andvolatile. Each cv-qualifier shall appear at most once in a cv-qualifier-seq. If a cv-qualifier_appears in a decl-specifier-seq, the_init-declarator-list of the declaration shall not be empty. [Note:...