aboutsummaryrefslogtreecommitdiff
path: root/gcc/omp-low.c
diff options
context:
space:
mode:
authorPatrick Palka <ppalka@redhat.com>2020-10-08 00:05:41 -0400
committerPatrick Palka <ppalka@redhat.com>2020-10-08 00:05:41 -0400
commitc1c62aec6751678e958ab5c61b2d903a09d7efd9 (patch)
tree3642a5e9b9cbdfc4f9585f4827703843380d24f4 /gcc/omp-low.c
parent6b1b5c255f859e75a2d74ae58a011e846d87a277 (diff)
downloadgcc-c1c62aec6751678e958ab5c61b2d903a09d7efd9.zip
gcc-c1c62aec6751678e958ab5c61b2d903a09d7efd9.tar.gz
gcc-c1c62aec6751678e958ab5c61b2d903a09d7efd9.tar.bz2
c++: ICE in dependent_type_p with constrained auto [PR97052]
This patch fixes an "unguarded" call to coerce_template_parms in build_standard_check: processing_template_decl could be zero if we get here during processing of the first 'auto' parameter of an abbreviated function template, or if we're processing the type constraint of a non-templated variable. In the testcase below, this leads to an ICE when coerce_template_parms instantiates C's dependent default template argument. gcc/cp/ChangeLog: PR c++/97052 * constraint.cc (build_type_constraint): Temporarily increment processing_template_decl before calling build_concept_check. * pt.c (make_constrained_placeholder_type): Likewise. gcc/testsuite/ChangeLog: PR c++/97052 * g++.dg/cpp2a/concepts-defarg2.C: New test.
Diffstat (limited to 'gcc/omp-low.c')
0 files changed, 0 insertions, 0 deletions