public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug pch/115312] New: [14/15 Regression] ICE when including a PCH via compiler option -include
@ 2024-06-01  3:37 gcc at mailinator dot com
  2024-06-02  1:26 ` [Bug pch/115312] " lhyatt at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: gcc at mailinator dot com @ 2024-06-01  3:37 UTC (permalink / raw)
  To: gcc-bugs

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.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-06-27 21:07 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-01  3:37 [Bug pch/115312] New: [14/15 Regression] ICE when including a PCH via compiler option -include gcc at mailinator dot com
2024-06-02  1:26 ` [Bug pch/115312] " lhyatt at gcc dot gnu.org
2024-06-03  7:09 ` rguenth at gcc dot gnu.org
2024-06-11  4:28 ` brechtsanders at users dot sourceforge.net
2024-06-11 21:37 ` lhyatt at gcc dot gnu.org
2024-06-15 13:14 ` brechtsanders at users dot sourceforge.net
2024-06-15 15:30 ` lhyatt at gcc dot gnu.org
2024-06-15 19:41 ` brechtsanders at users dot sourceforge.net
2024-06-17 16:33 ` [Bug pch/115312] [14/15 Regression] ICE when including a PCH via compiler option -include since r14-5836 lhyatt at gcc dot gnu.org
2024-06-27 21:07 ` lhyatt 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).