https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112580
Bug ID: 112580
Summary: [14 Regression]: g++.dg/modules/xtreme-header-4_b.C
et al; ICE tree check: expected class 'type', have
'declaration'
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Keywords: ice-checking
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: hp at gcc dot gnu.org
CC: redi at gcc dot gnu.org
Target Milestone: ---
r14-5524-gc7f6537db94f7c exposed this test-suite regression for multiple
targets:
Running /x/gcc/gcc/testsuite/g++.dg/modules/modules.exp ...
[...]
FAIL: g++.dg/modules/xtreme-header-4_b.C -std=c++2b (internal compiler error:
tree check: expected class 'type', have 'declaration' (template_decl) in
get_originating_module_decl, at cp/module.cc:18649)
FAIL: g++.dg/modules/xtreme-header-4_b.C -std=c++2b (test for excess errors)
FAIL: g++.dg/modules/xtreme-header-5_b.C -std=c++2b (internal compiler error:
tree check: expected class 'type', have 'declaration' (template_decl) in
get_originating_module_decl, at cp/module.cc:18649)
FAIL: g++.dg/modules/xtreme-header-5_b.C -std=c++2b (test for excess errors)
FAIL: g++.dg/modules/xtreme-header_b.C -std=c++2b (internal compiler error:
tree check: expected class 'type', have 'declaration' (template_decl) in
get_originating_module_decl, at cp/module.cc:18649)
FAIL: g++.dg/modules/xtreme-header_b.C -std=c++2b (test for excess errors)
It happens for cris-elf, as well as other platforms:
powerpc64-unknown-linux-gnu
https://gcc.gnu.org/pipermail/gcc-testresults/2023-November/800960.html
i686-pc-linux-gnu
https://gcc.gnu.org/pipermail/gcc-testresults/2023-November/800997.html
"arm"
https://gcc.gnu.org/pipermail/gcc-regression/2023-November/078545.html
(where you have to click links to find out --target, though probably not
important)
Module tests may be nastier to reproduce than the usual ICE needing more than a
preprocessed .ii, but I believe one or more of the above targets should be
accessible.