https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119817

            Bug ID: 119817
           Summary: d: internal compiler error: in
                    dwarf2out_imported_module_or_decl, at
                    dwarf2out.cc:27676
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: d
          Assignee: ibuclaw at gdcproject dot org
          Reporter: ibuclaw at gcc dot gnu.org
  Target Milestone: ---

Occurs when selectively importing a template via a public import.

---
import std : split, to;
---

test.d:1:8: internal compiler error: in dwarf2out_imported_module_or_decl, at
dwarf2out.cc:27676
    1 | import std : split, to;
      |        ^
0x29a1e4b internal_error(char const*, ...)
        ../../gcc/diagnostic-global-context.cc:517
0xb43a85 fancy_abort(char const*, int, char const*)
        ../../gcc/diagnostic.cc:1722
0x919cd9 dwarf2out_imported_module_or_decl
        ../../gcc/dwarf2out.cc:27676
0xdc47a1 DeclVisitor::visit(Import*)
        ../../gcc/d/decl.cc:306
0xdbe43f DeclVisitor::build_dsymbol(Dsymbol*)
        ../../gcc/d/decl.cc:245
0xdbe43f build_decl_tree(Dsymbol*)
        ../../gcc/d/decl.cc:1121
0xdd4d10 build_module_tree(Module*)
        ../../gcc/d/modules.cc:733
0xdc1ff7 DeclVisitor::visit(Module*)
        ../../gcc/d/decl.cc:262
0xdbe43f DeclVisitor::build_dsymbol(Dsymbol*)
        ../../gcc/d/decl.cc:245
0xdbe43f build_decl_tree(Dsymbol*)
        ../../gcc/d/decl.cc:1121
0xdba383 d_parse_file
        ../../gcc/d/d-lang.cc:1412
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.

Reply via email to