Simplify lambda parsing.
authorJason Merrill <jason@redhat.com>
Sun, 19 Jan 2020 14:15:26 +0000 (09:15 -0500)
committerJason Merrill <jason@redhat.com>
Sun, 19 Jan 2020 18:56:22 +0000 (13:56 -0500)
commit303484a73541ea7f41dff0238157924e49c255ff
treeb028146a93b9ea6e208fb9852b7c81d3afe7f98d
parentbf6fc129c0568da74270474a1cf0737120796893
Simplify lambda parsing.

Since we removed the special parsing for C++11 lambdas, it's just been an
open-coded copy of cp_parser_function_body.  So let's call it instead.  This
avoids the need to change this code in my revised 33799 patch.

* parser.c (cp_parser_lambda_body): Use cp_parser_function_body.
gcc/cp/ChangeLog
gcc/cp/parser.c