https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123186
Bug ID: 123186
Summary: [16 Regression] internal compiler error: in
lookup_member, at cp/search.cc:1197
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: dhruvc at gcc dot gnu.org
Target Milestone: ---
Source code:
===
template <class a> struct b : a {
typename b<a>::c<> d;
};
===
Compilation flags: -std=c++11
May be related to PR123143, I have not bisected to the commit.
Backtrace:
test.cpp:2:22: internal compiler error: in lookup_member, at cp/search.cc:1197
2 | typename b<a>::c<> d;
| ^
0x3e59c73 internal_error(char const*, ...)
/local/home/dhruvc/gcc-trunk/src/gcc/diagnostic-global-context.cc:787
0x3e690db fancy_abort(char const*, int, char const*)
/local/home/dhruvc/gcc-trunk/src/gcc/diagnostics/context.cc:1805
0x152f847 lookup_member(tree_node*, tree_node*, int, bool, int,
access_failure_info*)
/local/home/dhruvc/gcc-trunk/src/gcc/cp/search.cc:1197
0x1505ebf resolve_typename_type(tree_node*, bool)
/local/home/dhruvc/gcc-trunk/src/gcc/cp/pt.cc:30324
0x15c412b structural_comptypes
/local/home/dhruvc/gcc-trunk/src/gcc/cp/typeck.cc:1427
0x15c676f comptypes(tree_node*, tree_node*, int)
/local/home/dhruvc/gcc-trunk/src/gcc/cp/typeck.cc:1726
0x1237e07 grokdeclarator(cp_declarator const*, cp_decl_specifier_seq*,
decl_context, int, tree_node**)
/local/home/dhruvc/gcc-trunk/src/gcc/cp/decl.cc:16405
0x1260c3b grokfield(cp_declarator const*, cp_decl_specifier_seq*, tree_node*,
bool, tree_node*, tree_node*)
/local/home/dhruvc/gcc-trunk/src/gcc/cp/decl2.cc:1061
0x140a00f cp_parser_member_declaration
/local/home/dhruvc/gcc-trunk/src/gcc/cp/parser.cc:30561
0x1408b33 cp_parser_member_specification_opt
/local/home/dhruvc/gcc-trunk/src/gcc/cp/parser.cc:29848
0x140611b cp_parser_class_specifier
/local/home/dhruvc/gcc-trunk/src/gcc/cp/parser.cc:28756
0x13f3edb cp_parser_type_specifier
/local/home/dhruvc/gcc-trunk/src/gcc/cp/parser.cc:21453
0x13ed74b cp_parser_decl_specifier_seq
/local/home/dhruvc/gcc-trunk/src/gcc/cp/parser.cc:18031
0x14153df cp_parser_single_declaration
/local/home/dhruvc/gcc-trunk/src/gcc/cp/parser.cc:35263
0x14143f7 cp_parser_template_declaration_after_parameters
/local/home/dhruvc/gcc-trunk/src/gcc/cp/parser.cc:35020
0x1415247 cp_parser_explicit_template_declaration
/local/home/dhruvc/gcc-trunk/src/gcc/cp/parser.cc:35194
0x14152cf cp_parser_template_declaration_after_export
/local/home/dhruvc/gcc-trunk/src/gcc/cp/parser.cc:35213
0x13f0797 cp_parser_template_declaration
/local/home/dhruvc/gcc-trunk/src/gcc/cp/parser.cc:19647
0x13ea7cf cp_parser_declaration
/local/home/dhruvc/gcc-trunk/src/gcc/cp/parser.cc:16789
0x13eac83 cp_parser_toplevel_declaration
/local/home/dhruvc/gcc-trunk/src/gcc/cp/parser.cc:16893
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.