aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa.c
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2020-11-17 11:38:25 -0500
committerMarek Polacek <polacek@redhat.com>2020-11-21 15:35:14 -0500
commit78cd6a63ee67ed854fbe54dd7c0a500dc138459a (patch)
treebf7e0f1f965778ff911221099b83e465ddfccdd3 /gcc/tree-ssa.c
parentddaad23e2f49a91ab59f87f31b01e57439a3d6df (diff)
downloadgcc-78cd6a63ee67ed854fbe54dd7c0a500dc138459a.zip
gcc-78cd6a63ee67ed854fbe54dd7c0a500dc138459a.tar.gz
gcc-78cd6a63ee67ed854fbe54dd7c0a500dc138459a.tar.bz2
c++: Allow template lambdas without lambda-declarator [PR97839]
Our implementation of template lambdas incorrectly requires the optional lambda-declarator. This was probably required by an early draft of generic lambdas, but now the production is [expr.prim.lambda.general]: lambda-expression: lambda-introducer lambda-declarator [opt] compound-statement lambda-introducer < template-parameter-list > requires-clause [opt] lambda-declarator [opt] compound-statement Therefore, we should accept the following test. gcc/cp/ChangeLog: PR c++/97839 * parser.c (cp_parser_lambda_declarator_opt): Don't require (). gcc/testsuite/ChangeLog: PR c++/97839 * g++.dg/cpp2a/lambda-generic8.C: New test.
Diffstat (limited to 'gcc/tree-ssa.c')
0 files changed, 0 insertions, 0 deletions