From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D66373871020; Sat, 1 Jun 2024 03:37:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D66373871020 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1717213040; bh=E4rZXChv7pQlUgztvT5029fiXjjuTuBPan8WEGXhuEw=; h=From:To:Subject:Date:From; b=FYWvFhuvpUSz//DnrwAwF8henQrsL/FPQHEeEMLW15gE9S2He6bK+FIyYXi8hhq47 oIWhV1lIMXWF+PtPQ0LL2R47w+F38bTZ2scx6tBKpfKn0czarEAmwYi+WB2PYvPLD0 7tlySaVBmU2ipFmiANTL0S5j7hvVk4ytPVDbnl4g= From: "gcc at mailinator dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug pch/115312] New: [14/15 Regression] ICE when including a PCH via compiler option -include Date: Sat, 01 Jun 2024 03:37:20 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: pch X-Bugzilla-Version: 14.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gcc at mailinator dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone cf_gcchost cf_gcctarget cf_gccbuild Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D115312 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 bel= ow: ``` 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 for instructions. ``` This issue shows up on (i686|x86_64)-w64-mingw32 platforms. GCC 14.1.0 rele= ases from MSYS2 and WinLibs projects are affected. I have done some tests with prebuilt GCC 14 pre-releases from WinLibs proje= ct. - 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= .=