https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99294
Bug ID: 99294 Summary: [modules] tdef-inst-1 fails with -fno-module-lazy Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: nathan at gcc dot gnu.org Target Milestone: --- In working on 99170 I hit a new assert, that appears unrelated to the 99170 WIP. ./cc1plus -fmodules-ts tdef-inst-1_a.C -quiet ./cc1plus -fmodules-ts tdef-inst-1_b.C -quiet -fno-module-lazy during RTL pass: expand tdef-inst-1_b.C: In function 'string Quux()': tdef-inst-1_b.C:8:10: internal compiler error: in make_decl_rtl, at varasm.c:1418 8 | return 1; // failed to find converting ctor of string | ^ 0x1b36309 make_decl_rtl(tree_node*) ../../../src/gcc/varasm.c:1418 0x10221eb expand_return ../../../src/gcc/cfgexpand.c:3741 0x1022881 expand_gimple_stmt_1 ../../../src/gcc/cfgexpand.c:3882 0x1022df1 expand_gimple_stmt ../../../src/gcc/cfgexpand.c:4008 0x102b0e6 expand_gimple_basic_block ../../../src/gcc/cfgexpand.c:6045