https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121443
Ben Wu <soggysocks206 at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |soggysocks206 at gmail dot com
--- Comment #1 from Ben Wu <soggysocks206 at gmail dot com> ---
Created attachment 63028
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=63028&action=edit
initial-patch
The constructor is not parsed correctly because `parser->in_declarator_p ==
true` since we are parsing the declarator for `g`, so a constructor is not
possible in cp_parser_decl_specifier_seq.
Here is a proposed patch to initialize constructor_possible_p differently to
account for a lambda in the declarator. Bootstrapping and regtesting successful
on x86_64-pc-linux-gnu.
Any thoughts on this approach?