https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97905
Bug ID: 97905 Summary: ice in duplicate_decls, at cp/decl.c:2754 Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- Created attachment 49594 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49594&action=edit gzipped C++ source code For the attached C++ code, recent gcc trunk does this: route.cc:37:12: internal compiler error: in duplicate_decls, at cp/decl.c:2754 0x6f5168 duplicate_decls(tree_node*, tree_node*, bool, bool) ../../trunk.git/gcc/cp/decl.c:2752 0x79cf73 do_pushdecl(tree_node*, bool) ../../trunk.git/gcc/cp/name-lookup.c:2970 0x79fed5 pushdecl(tree_node*, bool) ../../trunk.git/gcc/cp/name-lookup.c:3109 0x79fed5 maybe_push_decl(tree_node*) ../../trunk.git/gcc/cp/name-lookup.c:3140 The bug seems to exist sometime between git hash ecf65330c11544eb, dated 20201117 and hash cb1a4876a0e724ca, dated 20201118. Flag -march=bdver2 required. Since I now understand git bisect, I will have a go at finding a broken commit. I will also have my usual go at reducing the code.