From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B369B3858C39; Thu, 7 Oct 2021 10:44:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B369B3858C39 From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/56659] Segfault due to missing libcpp error handler for "gfortran -cpp" Date: Thu, 07 Oct 2021 10:44:45 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.8.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Oct 2021 10:44:45 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D56659 --- Comment #8 from Tobias Burnus --- (In reply to kapinos from comment #7) > The output of gfortran 10.2.0 was added previously, cf. > > f951: Warning: Include directory =E2=80=98./foo/bar=E2=80=99: Permissi= on denied > > f951: internal compiler error: in cpp_diagnostic_at, at libcpp/errors.= c:41 I can reproduce this with GCC 7 to 10. But with my patch for PR 100904 (see commit there), this is fixed in GCC 12: f951: Warning: Include directory =E2=80=98foo/bar/=E2=80=99: Permission d= enied : Error: foo/bar: Permission denied (The shows up when entering a file but the file is not yet there. Not ideal, but not that quick to fix. Once the file is read, that's replaced by the fi= le name and line number. Still, the issue should be fixed eventuall= y.)=