From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 072943858D20; Mon, 8 Apr 2024 09:31:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 072943858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712568701; bh=JRnO7PFzE54auylhCBnt9kpX5KpQ2BuPMzVTwB3M1Gg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ogWikeb8YmoEcmYLa4oamKIDHVLJ6c4oerPnHx7/zFBAbPVVOobOzmbs6fL0prPgx EwVu4qgnmNMNeQCR9KfmNjpzbTiUIzjFymUoV7lO0/aPRiH/j6VLPU4HR3LViDz/V4 SUt+BsbeINlpqU/6AvczuzUHZ+5w6TQuwBB5SOkQ= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/114634] Crash Issue Encountered in GCC Compilation of Template Code with Aligned Attribute Date: Mon, 08 Apr 2024 09:31:40 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW 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: cf_reconfirmed_on bug_status keywords component everconfirmed 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=3D114634 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2024-04-08 Status|UNCONFIRMED |NEW Keywords| |ice-on-valid-code Component|c |c++ Ever confirmed|0 |1 --- Comment #1 from Richard Biener --- Seems when we call this 'e' doesn't have a type and we crash: if (DECL_P (node)) { attrs[0] =3D DECL_ATTRIBUTES (node); attrs[1] =3D TYPE_ATTRIBUTES (TREE_TYPE (node)); I suppose if ((code =3D=3D FUNCTION_DECL && !excl->function && (!excl->type || !spec->affects_type_identity)) || (code =3D=3D VAR_DECL && !excl->variable && (!excl->type || !spec->affects_type_identity)) || (((code =3D=3D TYPE_DECL || RECORD_OR_UNION_TYPE_P (node)) && !excl->type))) return false; could add || (code !=3D FUNCTION_DECL && code !=3D VAR_DECL && code !=3D TY= PE_DECL)=