From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 798033858431; Tue, 15 Aug 2023 01:54:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 798033858431 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1692064489; bh=Os4Dns2PZs/mfWcxLYTzms3PfxjpyNkOJKVwgw2Sb0s=; h=From:To:Subject:Date:In-Reply-To:References:From; b=LdRr49ud0kHcHxbigFZWj8MN2ITMm0eSZxfaVRhHMAGoakGxOG9cKL2dJ/IKqYa3l puhVoC3KkIP17mbtvrdgOoaAXJQ/zqc+gG4C7/viBqj6OPk+LxrHPzsGg+OZh4AAyu z0I0LXOYDFCwGcMiPis6M0ym3opP5dlZksCvvMq0= From: "juzhe.zhong at rivai dot ai" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/110996] RISC-V vector Fortran: SEGV ICE during parsing Date: Tue, 15 Aug 2023 01:54:48 +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: 14.0 X-Bugzilla-Keywords: error-recovery X-Bugzilla-Severity: normal X-Bugzilla-Who: juzhe.zhong at rivai dot ai 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=3D110996 --- Comment #4 from JuzheZhong --- (In reply to Jeremy Bennett from comment #3) > @JuzheZhong I believe this is in someway related to RVV. If I remove `v' > from the march: >=20 > riscv64-unknown-linux-gnu-gfortran -march=3Drv64gc -mabi=3Dlp64d -c -= Ofast > testcase.f90 >=20 > The output I get is correct: >=20 > testcase.f90:6:20: >=20 > 6 | SUBROUTINE c(d) e > | 1 > Error: Syntax error in SUBROUTINE statement at (1) >=20 > Why does adding `v' to the -march string cause a SEGV? I didn't reproduce the issue. What I see is GCC has ICE even without 'v' in= =20 -march. And I have no idea for it.=