[Bug c++/86049] Array bindings are not const when initializer is

tom at kera dot name gcc-bugzilla@gcc.gnu.org
Tue Dec 11 15:09:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86049

Tomalak Geret'kal <tom at kera dot name> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tom at kera dot name

--- Comment #3 from Tomalak Geret'kal <tom at kera dot name> ---
I disagree and think that Clang is wrong.

The top-level qualifiers of T (the type of One) should be "cv", and cv is "the
cv-qualifiers in the decl-specifier-seq". The decl-specifier-seq is "auto", not
"const auto". That "auto" will infer "const int" doesn't seem to be relevant.

Discussion on https://stackoverflow.com/q/53726135/560648.


More information about the Gcc-bugs mailing list