public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "iamanonymous.cs at gmail dot com" <gcc-bugzilla@gcc.gnu.org> 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 [thread overview] Message-ID: <bug-114634-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114634 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: ============================================ $ cat bug.cc template <class> class A { enum { e __attribute__ ((aligned(16))) }; }; ============================================ The error output is: ============================================ $ 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 ============================================ The GCC version: ============================================ $ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/home/cTest/gcc/myinstall/libexec/gcc/x86_64-linux-gnu/14.0.1/lto-wrapper Target: x86_64-linux-gnu Configured with: ../configure -v --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --enable-checking=no --enable-languages=c,c++ --disable-multilib --prefix=/home/cTest/gcc/myinstall --disable-bootstrap Thread model: posix Supported LTO compression algorithms: zlib gcc version 14.0.1 20240329 (experimental) (GCC) ============================================
next reply other threads:[~2024-04-08 9:25 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-04-08 9:25 iamanonymous.cs at gmail dot com [this message] 2024-04-08 9:31 ` [Bug c++/114634] " rguenth at gcc dot gnu.org 2024-04-08 19:22 ` [Bug c++/114634] [11/12/13/14 Regression] " pinskia at gcc dot gnu.org 2024-04-12 13:33 ` law at gcc dot gnu.org 2024-04-12 14:01 ` [Bug c++/114634] [11/12/13/14 Regression] Crash Issue Encountered in GCC Compilation of Template Code with Aligned Attribute since r9-1745 jakub at gcc dot gnu.org 2024-04-12 16:34 ` jakub at gcc dot gnu.org 2024-04-17 12:56 ` [Bug c++/114634] [11/12/13 " jakub at gcc dot gnu.org 2024-04-21 4:09 ` cvs-commit at gcc dot gnu.org 2024-04-23 6:44 ` [Bug c++/114634] [11/12 " jakub at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-114634-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).