public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/114634] New: Crash Issue Encountered in GCC Compilation of Template Code with Aligned Attribute
@ 2024-04-08  9:25 iamanonymous.cs at gmail dot com
  2024-04-08  9:31 ` [Bug c++/114634] " rguenth at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: iamanonymous.cs at gmail dot com @ 2024-04-08  9:25 UTC (permalink / raw)
  To: gcc-bugs

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) 
============================================

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-04-23  6:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-08  9:25 [Bug c/114634] New: Crash Issue Encountered in GCC Compilation of Template Code with Aligned Attribute iamanonymous.cs at gmail dot com
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

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).