[Bug c++/86550] New: Lambda parsing allows arbitrary types in decl-specifier-seq
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jul 17 14:14:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86550
Bug ID: 86550
Summary: Lambda parsing allows arbitrary types in
decl-specifier-seq
Product: gcc
Version: 9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: jakub at gcc dot gnu.org
Target Milestone: ---
int main() { auto a = []() bool bool bool bool int {}; a (); }
or
int main() { auto a = []() bool {}; a (); }
are accepted, even though the only allowed decl-specifier-seq specifiers in
lambda-declarator are mutable and constexpr.
More information about the Gcc-bugs
mailing list