aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2022-05-11 14:53:26 -0400
committerJason Merrill <jason@redhat.com>2022-05-11 15:30:17 -0400
commit88459c3965e2a2f62ab4d4c8b2ac8460b1a15c33 (patch)
tree94e5295924083ad979f32ab1373c7b3e3d4816c4 /gcc/tree.h
parent4dc86f716fe6087f1cf786d69c0c6f3f5af810f0 (diff)
downloadgcc-88459c3965e2a2f62ab4d4c8b2ac8460b1a15c33.zip
gcc-88459c3965e2a2f62ab4d4c8b2ac8460b1a15c33.tar.gz
gcc-88459c3965e2a2f62ab4d4c8b2ac8460b1a15c33.tar.bz2
c++: lambda template in requires [PR105541]
Since the patch for PR103408, the template parameters for the lambda in this test have level 1 instead of 2, and we were treating null template args as 1 level of arguments, so tsubst_template_parms decided it had nothing to do. Fixed by distinguishing between <> and no args at all, which is what we have in our "substitution" in a requires-expression. PR c++/105541 gcc/cp/ChangeLog: * cp-tree.h (TMPL_ARGS_DEPTH): 0 for null args. * parser.cc (cp_parser_enclosed_template_argument_list): Use 0-length TREE_VEC for <>. gcc/testsuite/ChangeLog: * g++.dg/cpp2a/lambda-requires1.C: New test.
Diffstat (limited to 'gcc/tree.h')
0 files changed, 0 insertions, 0 deletions