[Bug c++/105003] New: ICE in new test case from r12-7710-gc7a6a32739d62d

seurer at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Mar 21 16:27:08 GMT 2022


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

            Bug ID: 105003
           Summary: ICE in new test case from r12-7710-gc7a6a32739d62d
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: seurer at gcc dot gnu.org
  Target Milestone: ---

g:c7a6a32739d62deab03266e2b5449fce261b1ecb, r12-7710-gc7a6a32739d62d
make  -k check-gcc
RUNTESTFLAGS="dg.exp=gcc/testsuite/g++.dg/cpp0x/variadic-alias3.C"

FAIL: g++.dg/cpp0x/variadic-alias3.C  -std=c++14 (internal compiler error: in
hashtab_chk_error, at hash-table.cc:137)
FAIL: g++.dg/cpp0x/variadic-alias3.C  -std=c++14 (test for excess errors)


spawn -ignore SIGHUP
/home/seurer/gcc/git/build/gcc-test/gcc/testsuite/g++/../../xg++
-B/home/seurer/gcc/git/build/gcc-test/gcc/testsuite/g++/../../
/home/seurer/gcc/git/gcc-test/gcc/testsuite/g++.dg/cpp0x/variadic-alias3.C
-fdiagnostics-plain-output -nostdinc++
-I/home/seurer/gcc/git/build/gcc-test/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/powerpc64le-unknown-linux-gnu
-I/home/seurer/gcc/git/build/gcc-test/powerpc64le-unknown-linux-gnu/libstdc++-v3/include
-I/home/seurer/gcc/git/gcc-test/libstdc++-v3/libsupc++
-I/home/seurer/gcc/git/gcc-test/libstdc++-v3/include/backward
-I/home/seurer/gcc/git/gcc-test/libstdc++-v3/testsuite/util -fmessage-length=0
-std=c++14 -pedantic-errors -Wno-long-long -S -o variadic-alias3.s^M
hash table checking failed: equal operator returns true for a pair of values
with a different hash value^M
/home/seurer/gcc/git/gcc-test/gcc/testsuite/g++.dg/cpp0x/variadic-alias3.C: In
instantiation of 'struct any_badge<>':^M
/home/seurer/gcc/git/gcc-test/gcc/testsuite/g++.dg/cpp0x/variadic-alias3.C:40:33:
  required from here^M
/home/seurer/gcc/git/gcc-test/gcc/testsuite/g++.dg/cpp0x/variadic-alias3.C:33:3:
internal compiler error: in hashtab_chk_error, at hash-table.cc:137^M
0x1025e003 hashtab_chk_error()^M
        /home/seurer/gcc/git/gcc-test/gcc/hash-table.cc:137^M
0x1064e207 hash_table<spec_hasher, false, xcallocator>::verify(spec_entry*
const&, unsigned int)^M
        /home/seurer/gcc/git/gcc-test/gcc/hash-table.h:1036^M
0x1064e3f3 hash_table<spec_hasher, false,
xcallocator>::find_with_hash(spec_entry* const&, unsigned int)^M
        /home/seurer/gcc/git/gcc-test/gcc/hash-table.h:921^M
0x105f601f lookup_template_class_1^M
        /home/seurer/gcc/git/gcc-test/gcc/cp/pt.cc:9954^M
0x105f601f lookup_template_class(tree_node*, tree_node*, tree_node*,
tree_node*, int, int)^M
        /home/seurer/gcc/git/gcc-test/gcc/cp/pt.cc:10309^M
0x105fa2b3 tsubst_aggr_type^M
        /home/seurer/gcc/git/gcc-test/gcc/cp/pt.cc:13697^M
0x105fa2b3 tsubst_aggr_type^M
        /home/seurer/gcc/git/gcc-test/gcc/cp/pt.cc:13623^M
0x105dcf8b tsubst(tree_node*, tree_node*, int, tree_node*)^M
        /home/seurer/gcc/git/gcc-test/gcc/cp/pt.cc:15607^M
0x105cc963 tsubst_qualified_id^M
        /home/seurer/gcc/git/gcc-test/gcc/cp/pt.cc:16585^M
0x105d035b tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)^M
        /home/seurer/gcc/git/gcc-test/gcc/cp/pt.cc:20289^M
0x1060684b tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool)^M
        /home/seurer/gcc/git/gcc-test/gcc/cp/pt.cc:19419^M
0x1061bee7 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool)^M
        /home/seurer/gcc/git/gcc-test/gcc/cp/pt.cc:18390^M
0x1061bee7 tsubst_template_arg(tree_node*, tree_node*, int, tree_node*)^M
        /home/seurer/gcc/git/gcc-test/gcc/cp/pt.cc:12373^M
0x1061bee7 tsubst_template_arg(tree_node*, tree_node*, int, tree_node*)^M
        /home/seurer/gcc/git/gcc-test/gcc/cp/pt.cc:12361^M
0x10620713 tsubst_template_args(tree_node*, tree_node*, int, tree_node*)^M
        /home/seurer/gcc/git/gcc-test/gcc/cp/pt.cc:13467^M
0x105fa263 tsubst_aggr_type^M
        /home/seurer/gcc/git/gcc-test/gcc/cp/pt.cc:13679^M
0x105fa263 tsubst_aggr_type^M
        /home/seurer/gcc/git/gcc-test/gcc/cp/pt.cc:13623^M
0x105dc733 tsubst(tree_node*, tree_node*, int, tree_node*)^M
        /home/seurer/gcc/git/gcc-test/gcc/cp/pt.cc:16148^M
0x105dd7af tsubst(tree_node*, tree_node*, int, tree_node*)^M
        /home/seurer/gcc/git/gcc-test/gcc/cp/pt.cc:15904^M
0x105ce333 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)^M
        /home/seurer/gcc/git/gcc-test/gcc/cp/pt.cc:21327^M


commit c7a6a32739d62deab03266e2b5449fce261b1ecb (HEAD, refs/bisect/bad)
Author: Marek Polacek <polacek@redhat.com>
Date:   Wed Mar 16 09:34:34 2022 -0400

    c++: alias template and empty parameter packs [PR104008]


More information about the Gcc-bugs mailing list