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

            Bug ID: 94044
           Summary: internal compiler error: in comptypes, at
                    cp/typeck.c:1490 on riscv64-unknown-linux-gnu and
                    arm-eabi
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: kito at gcc dot gnu.org
  Target Milestone: ---

How to reproduce:
 $ riscv64-unknown-linux-gnu-gcc g++.dg/cpp0x/variadic-sizeof4.C -std=c++11
or
 $ arm-eabi-g++ g++.dg/cpp0x/variadic-sizeof4.C -std=c++14


variadic-sizeof4.C:28:43: internal compiler error: in comptypes, at
cp/typeck.c:1490
   28 | using wrapped2 = list<T, size_for<Ts..., T>>;
      |                                           ^~
0x8aa6ba comptypes(tree_node*, tree_node*, int)
        ../../../riscv-gnu-toolchain-trunk/riscv-gcc/gcc/cp/typeck.c:1489
0x89be7e cp_tree_equal(tree_node*, tree_node*)
        ../../../riscv-gnu-toolchain-trunk/riscv-gcc/gcc/cp/tree.c:3794
0x7d9e42 template_args_equal(tree_node*, tree_node*, bool)
        ../../../riscv-gnu-toolchain-trunk/riscv-gcc/gcc/cp/pt.c:9043
0x7d9af9 comp_template_args(tree_node*, tree_node*, tree_node**, tree_node**,
bool)
        ../../../riscv-gnu-toolchain-trunk/riscv-gcc/gcc/cp/pt.c:9072
0x8a9ce9 structural_comptypes
        ../../../riscv-gnu-toolchain-trunk/riscv-gcc/gcc/cp/typeck.c:1343
0x8aa5ec structural_comptypes
        ../../../riscv-gnu-toolchain-trunk/riscv-gcc/gcc/cp/typeck.c:1510
0x8aa5ec comptypes(tree_node*, tree_node*, int)
        ../../../riscv-gnu-toolchain-trunk/riscv-gcc/gcc/cp/typeck.c:1512
0x7d9f75 template_args_equal(tree_node*, tree_node*, bool)
        ../../../riscv-gnu-toolchain-trunk/riscv-gcc/gcc/cp/pt.c:9024
0x89b960 cp_tree_equal(tree_node*, tree_node*)
        ../../../riscv-gnu-toolchain-trunk/riscv-gcc/gcc/cp/tree.c:3875
0x7d9e42 template_args_equal(tree_node*, tree_node*, bool)
        ../../../riscv-gnu-toolchain-trunk/riscv-gcc/gcc/cp/pt.c:9043
0x7d9af9 comp_template_args(tree_node*, tree_node*, tree_node**, tree_node**,
bool)
        ../../../riscv-gnu-toolchain-trunk/riscv-gcc/gcc/cp/pt.c:9072
0x7e56e9 spec_hasher::equal(spec_entry*, spec_entry*)
        ../../../riscv-gnu-toolchain-trunk/riscv-gcc/gcc/cp/pt.c:1703
0x848651 hash_table<spec_hasher, false,
xcallocator>::find_with_hash(spec_entry* const&, unsigned int)
        ../../../riscv-gnu-toolchain-trunk/riscv-gcc/gcc/hash-table.h:917
0x828cf7 lookup_template_class_1
        ../../../riscv-gnu-toolchain-trunk/riscv-gcc/gcc/cp/pt.c:9680
0x828cf7 lookup_template_class(tree_node*, tree_node*, tree_node*, tree_node*,
int, int)
        ../../../riscv-gnu-toolchain-trunk/riscv-gcc/gcc/cp/pt.c:10020
0x86339d finish_template_type(tree_node*, tree_node*, int)
        ../../../riscv-gnu-toolchain-trunk/riscv-gcc/gcc/cp/semantics.c:3407
0x7b80b4 cp_parser_template_id
        ../../../riscv-gnu-toolchain-trunk/riscv-gcc/gcc/cp/parser.c:16689
0x7b85a8 cp_parser_class_name
        ../../../riscv-gnu-toolchain-trunk/riscv-gcc/gcc/cp/parser.c:23626
0x7b330e cp_parser_qualifying_entity
        ../../../riscv-gnu-toolchain-trunk/riscv-gcc/gcc/cp/parser.c:6738
0x7b330e cp_parser_nested_name_specifier_opt
        ../../../riscv-gnu-toolchain-trunk/riscv-gcc/gcc/cp/parser.c:6410
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.


No ICE if compile with -std=c++11

Failed since g:9d2d283367a407c1ba9ecdb8590f9295828e25f8

GCC Configure option:

riscv64: --target=riscv64-unknown-elf --with-abi=lp64 --with-arch=rv64gc
arm: --target=arm-eabi

Reply via email to