https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115312
Bug ID: 115312 Summary: [14/15 Regression] ICE when including a PCH via compiler option -include Product: gcc Version: 14.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: pch Assignee: unassigned at gcc dot gnu.org Reporter: gcc at mailinator dot com Target Milestone: --- Host: x86_64-w64-mingw32 Target: x86_64-w64-mingw32 Build: x86_64-w64-mingw32 An internal compiler error is triggered in GCC 14.1.0 when including a precompiled header via compiler option -include. A testcase is provided below: ``` touch test.cpp touch test.h g++ test.h g++ -include test.h -c test.cpp -save-temps 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. ``` This issue shows up on (i686|x86_64)-w64-mingw32 platforms. GCC 14.1.0 releases from MSYS2 and WinLibs projects are affected. I have done some tests with prebuilt GCC 14 pre-releases from WinLibs project. - Last working GCC 14 pre-release is from snapshot gcc-14-20231119. - First GCC 14 pre-release with this issue is from snapshot gcc-14-20231217.