diff options
author | Patrick Palka <ppalka@redhat.com> | 2022-05-04 17:08:08 -0400 |
---|---|---|
committer | Patrick Palka <ppalka@redhat.com> | 2022-05-04 17:08:08 -0400 |
commit | 8a98e3ff7e80bf2936f163d50309fd88d72564a0 (patch) | |
tree | ef4eb4a80f638857f2e3e3e62fe8a3eeabc6d1a5 /libcpp/system.h | |
parent | 1cd3faf5dddb3cbfa2ed308ecf3db4f70bff337e (diff) | |
download | gcc-8a98e3ff7e80bf2936f163d50309fd88d72564a0.zip gcc-8a98e3ff7e80bf2936f163d50309fd88d72564a0.tar.gz gcc-8a98e3ff7e80bf2936f163d50309fd88d72564a0.tar.bz2 |
c++: ICE during aggr CTAD for member tmpl [PR105476]
Here we're crashing from maybe_aggr_guide ultimately because
processing_template_decl isn't set when partially instantiating the
guide's parameter list; this causes us to force completion of the
dependent type Visitor_functior<Fn>, which of course fails and results
in an unexpected error_mark_node (the instantation should always succeed).
PR c++/105476
gcc/cp/ChangeLog:
* pt.cc (maybe_aggr_guide): Set processing_template_decl when
partially instantiating the guide's parameter list.
gcc/testsuite/ChangeLog:
* g++.dg/cpp2a/class-deduction-aggr13.C: New test.
* g++.dg/cpp2a/class-deduction-aggr13a.C: New test.
Diffstat (limited to 'libcpp/system.h')
0 files changed, 0 insertions, 0 deletions