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.

Reply via email to