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

            Bug ID: 77637
           Summary: ICE on x86_64-linux-gnu (Segmentation fault,
                    tree_check, cp_parser_std_attribute_list...)
           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: ---

$ g++-trunk -v
Using built-in specs.
COLLECT_GCC=g++-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 20160918 (experimental) [trunk revision 240220] (GCC)
$
$ g++-trunk small.C
small.C:1:6: internal compiler error: Segmentation fault
 int[[...]] a;
      ^~~
0xdc7baf crash_signal
        ../../gcc-source-trunk/gcc/toplev.c:336
0x78a1cb tree_check
        ../../gcc-source-trunk/gcc/tree.h:3025
0x78a1cb cp_parser_std_attribute_list
        ../../gcc-source-trunk/gcc/cp/parser.c:24223
0x78a1cb cp_parser_std_attribute_spec
        ../../gcc-source-trunk/gcc/cp/parser.c:24289
0x78a1cb cp_parser_std_attribute_spec_seq
        ../../gcc-source-trunk/gcc/cp/parser.c:24377
0x78d94f cp_parser_decl_specifier_seq
        ../../gcc-source-trunk/gcc/cp/parser.c:12694
0x79a9c1 cp_parser_simple_declaration
        ../../gcc-source-trunk/gcc/cp/parser.c:12416
0x79ae66 cp_parser_block_declaration
        ../../gcc-source-trunk/gcc/cp/parser.c:12363
0x7a3d14 cp_parser_declaration
        ../../gcc-source-trunk/gcc/cp/parser.c:12260
0x7a28af cp_parser_declaration_seq_opt
        ../../gcc-source-trunk/gcc/cp/parser.c:12139
0x7a2bf8 cp_parser_translation_unit
        ../../gcc-source-trunk/gcc/cp/parser.c:4356
0x7a2bf8 c_parse_file()
        ../../gcc-source-trunk/gcc/cp/parser.c:37714
0x917b92 c_common_parse_file()
        ../../gcc-source-trunk/gcc/c-family/c-opts.c:1073
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
int[[...]] a;
$

Reply via email to