https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78341

            Bug ID: 78341
           Summary: crash on invalid C++ code on x86_64-linux-gnu
                    (internal compiler error: in
                    cp_parser_std_attribute_spec, at cp/parser.c:24597)
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: chengniansun at gmail dot com
  Target Milestone: ---

$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/usr/local/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/7.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-source-trunk/configure --enable-languages=c,c++,lto
--prefix=/usr/local/gcc-trunk --disable-bootstrap
Thread model: posix
gcc version 7.0.0 20161110 (experimental) [trunk revision 242039] (GCC) 
$ 
$ gcc-trunk small.C
small.C:1:18: internal compiler error: in cp_parser_std_attribute_spec, at
cp/parser.c:24597
 alignas (alignas double
                  ^~~~~~
0x7b35cb cp_parser_std_attribute_spec
        ../../gcc-source-trunk/gcc/cp/parser.c:24596
0x7b35cb cp_parser_std_attribute_spec_seq
        ../../gcc-source-trunk/gcc/cp/parser.c:24648
0x7b674f cp_parser_decl_specifier_seq
        ../../gcc-source-trunk/gcc/cp/parser.c:12855
0x7c1191 cp_parser_simple_declaration
        ../../gcc-source-trunk/gcc/cp/parser.c:12577
0x7c1611 cp_parser_block_declaration
        ../../gcc-source-trunk/gcc/cp/parser.c:12524
0x7c86d0 cp_parser_declaration
        ../../gcc-source-trunk/gcc/cp/parser.c:12421
0x7c8ad4 cp_parser_declaration_seq_opt
        ../../gcc-source-trunk/gcc/cp/parser.c:12297
0x7c8e18 cp_parser_translation_unit
        ../../gcc-source-trunk/gcc/cp/parser.c:4360
0x7c8e18 c_parse_file()
        ../../gcc-source-trunk/gcc/cp/parser.c:37988
0x92e852 c_common_parse_file()
        ../../gcc-source-trunk/gcc/c-family/c-opts.c:1086
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
$ 
$ cat small.C
alignas (alignas double
$

Reply via email to