From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 80E4C385841E; Mon, 8 Apr 2024 09:25:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 80E4C385841E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712568305; bh=YzZIbUxkDDKMGLI19daHt9sRzp7XkRSCRZEtAh3gt5U=; h=From:To:Subject:Date:From; b=IIITpi1J5s4K5UwTYCpIUlPoScqZAZOR8ia3pszuFdIjha2Nl+ezSU+j2/v4PgRMZ h/Cqr2/SWqCOYzXpHgg0Uqm7IOFZoAkyWdRYGqH2RzuZscr9sC9f/5hnBqo9kByRX/ 88SqGB5MuHvVzpPPysxT21MfNdyy2mLHlOXBcASA= From: "iamanonymous.cs at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/114634] New: Crash Issue Encountered in GCC Compilation of Template Code with Aligned Attribute Date: Mon, 08 Apr 2024 09:25:04 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: iamanonymous.cs at gmail dot com 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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 Bug ID: 114634 Summary: Crash Issue Encountered in GCC Compilation of Template Code with Aligned Attribute Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: iamanonymous.cs at gmail dot com Target Milestone: --- The following code snippet triggers a crash issue: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D $ cat bug.cc template class A { enum { e __attribute__ ((aligned(16))) }; }; =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D The error output is: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D $ gcc bug.cc internal compiler error: Segmentation fault 2 | { enum { e __attribute__ ((aligned(16))) }; }; | ^ 0xedc273 crash_signal ../../gcc/toplev.cc:319 0x957dd7 diag_attr_exclusions ../../gcc/attribs.cc:471 0x95a5f7 decl_attributes(tree_node**, tree_node*, int, tree_node*) ../../gcc/attribs.cc:867 0x7ecc0e cplus_decl_attributes(tree_node**, tree_node*, int) ../../gcc/cp/decl2.cc:1880 0x7de1d1 build_enumerator(tree_node*, tree_node*, tree_node*, tree_node*, unsigned int) ../../gcc/cp/decl.cc:17543 0x890bdc cp_parser_enumerator_definition ../../gcc/cp/parser.cc:21903 0x890bdc cp_parser_enumerator_list ../../gcc/cp/parser.cc:21823 0x890bdc cp_parser_enum_specifier ../../gcc/cp/parser.cc:21754 0x890bdc cp_parser_type_specifier ../../gcc/cp/parser.cc:20034 0x8916f1 cp_parser_decl_specifier_seq ../../gcc/cp/parser.cc:16590 0x8bfc4f cp_parser_member_declaration ../../gcc/cp/parser.cc:27984 0x88dec1 cp_parser_member_specification_opt ../../gcc/cp/parser.cc:27840 0x88dec1 cp_parser_class_specifier ../../gcc/cp/parser.cc:26845 0x890171 cp_parser_type_specifier ../../gcc/cp/parser.cc:20064 0x8916f1 cp_parser_decl_specifier_seq ../../gcc/cp/parser.cc:16590 0x8bd774 cp_parser_single_declaration ../../gcc/cp/parser.cc:33143 0x8bdbd3 cp_parser_template_declaration_after_parameters ../../gcc/cp/parser.cc:32799 0x8be4b9 cp_parser_explicit_template_declaration ../../gcc/cp/parser.cc:33072 0x8be4b9 cp_parser_template_declaration_after_export ../../gcc/cp/parser.cc:33091 0x8c1fad cp_parser_declaration ../../gcc/cp/parser.cc:15502 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D The GCC version: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D $ gcc -v Using built-in specs. COLLECT_GCC=3Dgcc COLLECT_LTO_WRAPPER=3D/home/cTest/gcc/myinstall/libexec/gcc/x86_64-linux-gn= u/14.0.1/lto-wrapper Target: x86_64-linux-gnu Configured with: ../configure -v --build=3Dx86_64-linux-gnu --host=3Dx86_64-linux-gnu --target=3Dx86_64-linux-gnu --enable-checking=3Dno --enable-languages=3Dc,c++ --disable-multilib --prefix=3D/home/cTest/gcc/my= install --disable-bootstrap Thread model: posix Supported LTO compression algorithms: zlib gcc version 14.0.1 20240329 (experimental) (GCC)=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=