public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/115020] New: [modules] ICE in import_export_decl for GMF function definition in partition
@ 2024-05-10  2:14 nshead at gcc dot gnu.org
  0 siblings, 0 replies; only message in thread
From: nshead at gcc dot gnu.org @ 2024-05-10  2:14 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 115020
           Summary: [modules] ICE in import_export_decl for GMF function
                    definition in partition
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: nshead at gcc dot gnu.org
            Blocks: 103524
  Target Milestone: ---

The following sample ICEs on trunk:


  // a.cpp
  module;
  class Check { static void assertion(); };
  void Check::assertion() {}
  export module M:a;
  export using ::Check;

  // m.cpp
  module;
  struct Check { static void assertion(); };
  export module M;
  export import :a;
  void foo() { Check::assertion(); }


With 'g++ -fmodules-ts -Wno-global-module -S a.cpp m.cpp':

m.cpp:5:34: internal compiler error: in import_export_decl, at cp/decl2.cc:3430
    5 | void foo() { Check::assertion(); }
      |                                  ^
0xf4c543 import_export_decl(tree_node*)
        ../../gcc/gcc/cp/decl2.cc:3430
0xf5429b c_parse_final_cleanups()
        ../../gcc/gcc/cp/decl2.cc:5325
0x1322ee7 c_common_parse_file()
        ../../gcc/gcc/c-family/c-opts.cc:1329


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103524
[Bug 103524] [meta-bug] modules issue

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-05-10  2:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-10  2:14 [Bug c++/115020] New: [modules] ICE in import_export_decl for GMF function definition in partition nshead at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).