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

2024-10-26


2201. Cv-qualification of array types

Section: 6.8.5  [basic.type.qualifier]     Status: C++17     Submitter: Robert Haberlach     Date: 2015-11-15

[Adopted at the February/March, 2017 meeting.]

Issue 1059 changed 6.8.5 [basic.type.qualifier] paragraph 6 to read,

An array type whose elements are cv-qualified is also considered to have the same cv-qualifications as its elements.

However, that change overlooked the earlier statement in paragraph 2,

A compound type (6.8.4 [basic.compound]) is not cv-qualified by the cv-qualifiers (if any) of the types from which it is compounded. Any cv-qualifiers applied to an array type affect the array element type, not the array type (9.3.4.5 [dcl.array]).

Proposed resolution (January, 2017):

Change 6.8.5 [basic.type.qualifier] paragraph 2 as follows:

A compound type (6.8.4 [basic.compound]) is not cv-qualified by the cv-qualifiers (if any) of the types from which it is compounded. Any cv-qualifiers applied to an array type affect the array element type, not the array type (9.3.4.5 [dcl.array]).