diff options
author | Patrick Palka <ppalka@redhat.com> | 2022-10-20 11:33:39 -0400 |
---|---|---|
committer | Patrick Palka <ppalka@redhat.com> | 2022-10-20 11:33:39 -0400 |
commit | 9a8b37f5476ba1f92fd9a85add035ace89535e79 (patch) | |
tree | 619427c4b055fc791a9af3404c5b79452ce58654 /libjava | |
parent | e10ca9544632dbff4759b4b92886cd96d0b9bdfe (diff) | |
download | gcc-9a8b37f5476ba1f92fd9a85add035ace89535e79.zip gcc-9a8b37f5476ba1f92fd9a85add035ace89535e79.tar.gz gcc-9a8b37f5476ba1f92fd9a85add035ace89535e79.tar.bz2 |
c++ modules: handle CONCEPT_DECL in node_template_info [PR102963]
Here node_template_info is overlooking that CONCEPT_DECL has TEMPLATE_INFO
too, which causes get_originating_module_decl for the CONCEPT_DECL to not
return the corresponding TEMPLATE_DECL, which leads to an ICE from
import_entity_index while pretty printing the CONCEPT_DECL's module
suffix as part of the static assert failure elaboration.
PR c++/102963
gcc/cp/ChangeLog:
* module.cc (node_template_info): Handle CONCEPT_DECL.
gcc/testsuite/ChangeLog:
* g++.dg/modules/concept-7_a.C: New test.
* g++.dg/modules/concept-7_b.C: New test.
Diffstat (limited to 'libjava')
0 files changed, 0 insertions, 0 deletions