[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
paolo.carlini at oracle dot com
gcc-bugzilla@gcc.gnu.org
Wed Nov 12 11:18:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60420
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |paolo.carlini at oracle dot com
--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
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?
More information about the Gcc-bugs
mailing list