[Bug c++/60503] New: gcc looks for C++ attributes in the wrong place in a lambda-expression
richard-gccbugzilla at metafoo dot co.uk
gcc-bugzilla@gcc.gnu.org
Tue Mar 11 20:19:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60503
Bug ID: 60503
Summary: gcc looks for C++ attributes in the wrong place in a
lambda-expression
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: richard-gccbugzilla at metafoo dot co.uk
GCC accepts this ill-formed code:
void f() { []() [[ ]] mutable noexcept {}; }
... and rejects this valid code:
void f() { []() mutable noexcept [[ ]] {}; }
More information about the Gcc-bugs
mailing list