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

            Bug ID: 125996
           Summary: internal compiler error: in make_write, at
                    libcpp/mkdeps.cc:482
           Product: gcc
           Version: 16.1.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: redi at gcc dot gnu.org
  Target Milestone: ---

Given:

import std;
int main() {
}

Using GCC 16 or trunk:

g++ -std=c++23 -O0 -g -Wall -c -fmodules --compile-std-module -MMD -MP test.cc


In file included from
/home/jwakely/gcc/16.1.0/include/c++/16.1.0/x86_64-pc-linux-gnu/bits/stdc++.h:231:
/home/jwakely/gcc/16.1.0/include/c++/16.1.0/stdfloat:60:1: internal compiler
error: in make_write, at libcpp/mkdeps.cc:482
   60 | } // namespace std
      | ^
0x204513f internal_error(char const*, ...)
        ../../gcc-16.1.0/gcc/diagnostic-global-context.cc:787
0x453fe5 fancy_abort(char const*, int, char const*)
        ../../gcc-16.1.0/gcc/diagnostics/context.cc:1813
0x20dc53e make_write
        ../../gcc-16.1.0/libcpp/mkdeps.cc:482
0x20dc53e deps_write(cpp_reader const*, _IO_FILE*, unsigned int)
        ../../gcc-16.1.0/libcpp/mkdeps.cc:530
0x20c7fb7 cpp_finish(cpp_reader*, _IO_FILE*, _IO_FILE*)
        ../../gcc-16.1.0/libcpp/init.cc:957
0x772810 c_common_finish()
        ../../gcc-16.1.0/gcc/c-family/c-opts.cc:1506
0x45c3df finalize
        ../../gcc-16.1.0/gcc/toplev.cc:2127
0x45c3df do_compile
        ../../gcc-16.1.0/gcc/toplev.cc:2234
/home/jwakely/gcc/16.1.0/libexec/gcc/x86_64-pc-linux-gnu/16.1.0/cc1plus -quiet
-MMD stdc++.d -MP -D_GNU_SOURCE bits/stdc++.h -fmodule-header=system -quiet
-dumpbase stdc++.h -dumpbase-ext .h -mtune=generic -march=x86-64 -g -O0 -Wall
-std=c++23 -fmodules -o /tmp/ccqydBJB.s
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