From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A89FF3858C00; Thu, 1 Sep 2022 09:57:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A89FF3858C00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1662026261; bh=BQLZ3VjvgurJPl+c7Fu76VUyW5QyoiAFG1U0Zg+2Xm4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=MQEycGyL3xLWPy4ahPNwUw5Qv3GeJIu14uoL1Or/WnAvG8lsCf4WdhUQxikongvk/ KbP/jNIe7fWDT9id/zzQj11VpF+Hio/1uoZzFu+sBcSa6q+bExTs3dRQVEyfoSFrxD QoXrySLqpGRMoTaobh6WJI4VO7HLdeQMqCPTo0Jg= From: "michal at sawicz dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug pch/106799] `forming offset [32, 36] is out of the bounds` error with precompiled headers Date: Thu, 01 Sep 2022 09:57:41 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: pch X-Bugzilla-Version: 12.2.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: michal at sawicz dot net 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: Message-ID: In-Reply-To: References: 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=3D106799 --- Comment #2 from michal at sawicz dot net --- @Richard correct, if you skip the precompilation, it compiles fine: ``` $ rm cmake_pch.hxx.gch $ /usr/bin/g++-12 -I/usr/src/googletest/googlemock/include -O2 -std=3Dc++20 -include cmake_pch.hxx -c tmp.cpp $ ```=