From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CDE27385277B; Wed, 6 Sep 2023 10:46:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CDE27385277B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1693997195; bh=U/2Oq3ctwOjBc11jBBQQkFv2WAgO8NeOgYpizYnKN4o=; h=From:To:Subject:Date:In-Reply-To:References:From; b=FTephvDZzcjW29L/6cP2C+dVmTdQ5tA1H7zDjjyBO86qhQ9XMNOw6r2kqc38mSVsI Qo6ILtSzANmTpXu6D9/JSufrJi1zRe4Xf8dpliVgIENZHWMP6K0Ggn7/ERnJ0cZw2G x3pH9KyCBTDv/morG1e7KfCXXXnRzHPIlexdXHds= From: "juzhe.zhong at rivai dot ai" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/111295] RISC-V vector ICE in vsetvl pass Date: Wed, 06 Sep 2023 10:46:35 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: ice-on-valid-code 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=3D111295 --- Comment #3 from JuzheZhong --- This code can not be compiled: cc1plus: warning: command-line option '-Wno-implicit-function-declaration' = is valid for C/ObjC but not for C++ bug.C: In function 'int q()': bug.C:6:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse] 6 | int r (); | ^~ bug.C:6:9: note: remove parentheses to default-initialize a variable 6 | int r (); | ^~ | -- bug.C:25:19: error: 's' was not declared in this scope 25 | s (-l, ~0); | ^ bug.C:26:19: error: 't' was not declared in this scope 26 | t (j); | ^ bug.C:27:43: error: 'u' was not declared in this scope 27 | d =3D d + (a & 10000000 ? u (r, 2) : b); | ^ bug.C:31:13: error: 's' was not declared in this scope 31 | p ? s () : 0; | ^ bug.C:33:1: warning: no return statement in function returning non-void [-Wreturn-type] 33 | }=