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

            Bug ID: 81258
           Summary: ICE on C++1z code with invalid decomposition
                    declaration: in cp_finish_decl, at cp/decl.c:6760
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: su at cs dot ucdavis.edu
  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/8.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 8.0.0 20170630 (experimental) [trunk revision 249826] (GCC)
$
$ g++-trunk -std=c++1z -c small.cpp
small.cpp:1:11: internal compiler error: in cp_finish_decl, at cp/decl.c:6760
 auto [x] ();
           ^
0x74535f cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int)
        ../../gcc-source-trunk/gcc/cp/decl.c:6760
0x80b221 cp_parser_decomposition_declaration
        ../../gcc-source-trunk/gcc/cp/parser.c:13203
0x80b221 cp_parser_simple_declaration
        ../../gcc-source-trunk/gcc/cp/parser.c:12869
0x80b831 cp_parser_block_declaration
        ../../gcc-source-trunk/gcc/cp/parser.c:12763
0x813a70 cp_parser_declaration
        ../../gcc-source-trunk/gcc/cp/parser.c:12660
0x812734 cp_parser_declaration_seq_opt
        ../../gcc-source-trunk/gcc/cp/parser.c:12536
0x812a78 cp_parser_translation_unit
        ../../gcc-source-trunk/gcc/cp/parser.c:4386
0x812a78 c_parse_file()
        ../../gcc-source-trunk/gcc/cp/parser.c:38636
0x959335 c_common_parse_file()
        ../../gcc-source-trunk/gcc/c-family/c-opts.c:1104
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
$


----------------------


auto [x] ();

Reply via email to