MINGW-packages icon indicating copy to clipboard operation
MINGW-packages copied to clipboard

ICE in GCC 14.1.0 trying to preprocess C++ source file with precompiled header included via compiler option `-include`

Open luisdallos opened this issue 8 months ago • 0 comments

Description / Steps to reproduce the issue

An internal compiler error is triggered in GCC 14.1.0 when trying to preprocess C++ source file with precompiled header included via compiler option -include. I have reported this upstream.

The steps to reproduce:

touch test.cpp
touch test.h

g++ test.h
g++ -include test.h -fpch-preprocess -E test.cpp -o test.ii

Expected behavior

No ICE

Actual behavior

test.cpp:1: internal compiler error: in c_init_preprocess, at cp/parser.cc:790
Please submit a full bug report, with preprocessed source (by using -freport-bug).
See <https://gcc.gnu.org/bugs/> for instructions.

Verification

  • [X] I have verified that my MSYS2 is up-to-date before submitting the report (see https://www.msys2.org/docs/updating/)

Windows Version

MINGW64_NT-10.0-19045

MINGW environments affected

  • [X] MINGW64
  • [X] MINGW32
  • [X] UCRT64
  • [ ] CLANG64
  • [ ] CLANG32
  • [ ] CLANGARM64

Are you willing to submit a PR?

No response

luisdallos avatar Jun 02 '24 06:06 luisdallos