From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2CE7A3858413; Wed, 15 Sep 2021 20:57:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2CE7A3858413 From: "anlauf at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/102331] ICE in attr_decl1, at fortran/decl.c:8691 Date: Wed, 15 Sep 2021 20:57: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: 12.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: anlauf at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 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: Wed, 15 Sep 2021 20:57:45 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102331 --- Comment #3 from anlauf at gcc dot gnu.org --- (In reply to kargl from comment #2) > The following patch fixes the problem. It has not been regression tested. This restores the error, but for CLASS I now get: pr102331.f90:2:3: 2 | allocatable :: f | 1 Error: Unclassifiable statement at (1) pr102331.f90:1:0: 1 | class(t) function f() |=20 Error: The type for function 'f' at (1) is not accessible while the error message for line 2 does not show up for TYPE. Maybe there are a few more places that need fixing. (Not only the obvious one after the second hunk for parse.c).=