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

            Bug ID: 124153
           Summary: [Modules] ICE when g++ -MM a module file.
           Product: gcc
           Version: 15.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: shyeyian at petalmail dot com
  Target Milestone: ---

hello.cpp:
=====
export module hello // here is not ended with ';'
import world;
=====

command:
=====
[shyeyian@matebook test]$ g++ -std=c++26 -fmodules -MM -x c++ hello.
cpp -o hello.d
<built-in>: internal compiler error: in cpp_directive_only_process, at
libcpp/lex.cc:5765
0x26ef811 diagnostic_context::diagnostic_impl(rich_location*,
diagnostic_metadata const*, diagnostic_option_id, char const*, __va_list_tag
(*) [1], diagnostic_t)
        ???:0
0x2749918 internal_error(char const*, ...)
        ???:0
0x715613 fancy_abort(char const*, int, char const*)
        ???:0
0x27842c6 cpp_directive_only_process(cpp_reader*, void*, void (*)(cpp_reader*,
CPP_DO_task, void*, ...))
        ???:0
0xa26c37 preprocess_file(cpp_reader*)
        ???:0
0xa26e12 c_common_init()
        ???:0
0x808cf3 cxx_init()
        ???:0
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gitlab.archlinux.org/archlinux/packaging/packages/gcc/-/issues>
for instructions.
=====

Reply via email to