[Bug c++/60420] [C++11] Bogus "error:=?UTF-8?Q?=20=E2=80=98const=E2=80=99=20qualifiers=20cannot=20be=20applied=20to=20=E2=80=98int=26=E2=80=99?=" with lambda
daniel.kruegler at googlemail dot com
gcc-bugzilla@gcc.gnu.org
Wed Nov 12 11:44:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60420
--- Comment #5 from Daniel Krügler <daniel.kruegler at googlemail dot com> ---
(In reply to Paolo Carlini from comment #2)
> I'm looking into this, and I don't see how we can accept this kind of code
> given 8.3.2: "Cv-qualified references are ill-formed except when the
> cv-qualifiers are introduced through the use of a typedef (7.1.3) or of a
> template type argument (14.3), in which case the cv-qualifiers are ignored.".
>
> Daniel, are you willing to comment?
The current wording is:
"Cv-qualified references are ill-formed except when the cv-qualifiers are
introduced through the use of a typedef-name (7.1.3, 14.1) or
decltype-specifier (7.1.6.2), in which case the cv-qualifiers are ignored."
Note that this change came in via CWG 1510 addressing CD3:
http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1510
More information about the Gcc-bugs
mailing list