https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102963
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Patrick Palka <ppa...@gcc.gnu.org>: https://gcc.gnu.org/g:9a8b37f5476ba1f92fd9a85add035ace89535e79 commit r13-3414-g9a8b37f5476ba1f92fd9a85add035ace89535e79 Author: Patrick Palka <ppa...@redhat.com> Date: Thu Oct 20 11:33:39 2022 -0400 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.