[Bug tree-optimization/98107] New: [11 regression] ICE at hash-table.c:137 starting with r11-5663

seurer at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Dec 2 20:54:20 GMT 2020


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

            Bug ID: 98107
           Summary: [11 regression] ICE at hash-table.c:137 starting with
                    r11-5663
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: seurer at gcc dot gnu.org
  Target Milestone: ---

g:329ae1d7751346ba166d34e77a43e8cc33daa1c9, r11-5663

make  -k check-gcc RUNTESTFLAGS="dg.exp=g++.dg/template/canon-type-4.C"

FAIL: g++.dg/template/canon-type-4.C  -std=c++14 (internal compiler error)
FAIL: g++.dg/template/canon-type-4.C  -std=c++14 (test for excess errors)

# of expected passes            3
# of unexpected failures        2


Executing on host:
/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/template/canon-type-4.C   
-fdiagnostics-plain-output  -nostdinc++
-I/home/seurer/gcc/git/build/gcc-test/powerpc64-unknown-linux-gnu/libstdc++-v3/include/powerpc64-unknown-linux-gnu
-I/home/seurer/gcc/git/build/gcc-test/powerpc64-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 canon-type-4.s    (timeout =
300)
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/template/canon-type-4.C
-fdiagnostics-plain-output -nostdinc++
-I/home/seurer/gcc/git/build/gcc-test/powerpc64-unknown-linux-gnu/libstdc++-v3/include/powerpc64-unknown-linux-gnu
-I/home/seurer/gcc/git/build/gcc-test/powerpc64-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 canon-type-4.s
hash table checking failed: equal operator returns true for a pair of values
with a different hash value
/home/seurer/gcc/git/gcc-test/gcc/testsuite/g++.dg/template/canon-type-4.C:18:9:
internal compiler error: in hashtab_chk_error, at hash-table.c:137
0x1029e5bf hashtab_chk_error()
        /home/seurer/gcc/git/gcc-test/gcc/hash-table.c:137
0x105c7147 hash_table<spec_hasher, false, xcallocator>::verify(spec_entry*
const&, unsigned int)
        /home/seurer/gcc/git/gcc-test/gcc/hash-table.h:1033
0x105c7343 hash_table<spec_hasher, false,
xcallocator>::find_with_hash(spec_entry* const&, unsigned int)
        /home/seurer/gcc/git/gcc-test/gcc/hash-table.h:918
0x1057cfcf lookup_template_class_1
        /home/seurer/gcc/git/gcc-test/gcc/cp/pt.c:9830
0x1057cfcf lookup_template_class(tree_node*, tree_node*, tree_node*,
tree_node*, int, int)
        /home/seurer/gcc/git/gcc-test/gcc/cp/pt.c:10186
0x10580d63 tsubst_aggr_type
        /home/seurer/gcc/git/gcc-test/gcc/cp/pt.c:13488
0x10564817 tsubst(tree_node*, tree_node*, int, tree_node*)
        /home/seurer/gcc/git/gcc-test/gcc/cp/pt.c:15374
0x1057a247 coerce_template_parms
        /home/seurer/gcc/git/gcc-test/gcc/cp/pt.c:8930
0x1057cebb lookup_template_class_1
        /home/seurer/gcc/git/gcc-test/gcc/cp/pt.c:9798
0x1057cebb lookup_template_class(tree_node*, tree_node*, tree_node*,
tree_node*, int, int)
        /home/seurer/gcc/git/gcc-test/gcc/cp/pt.c:10186
0x105ee5eb finish_template_type(tree_node*, tree_node*, int)
        /home/seurer/gcc/git/gcc-test/gcc/cp/semantics.c:3442
0x10500027 cp_parser_template_id
        /home/seurer/gcc/git/gcc-test/gcc/cp/parser.c:16991
0x10500687 cp_parser_class_name
        /home/seurer/gcc/git/gcc-test/gcc/cp/parser.c:24213
0x104fad97 cp_parser_qualifying_entity
        /home/seurer/gcc/git/gcc-test/gcc/cp/parser.c:6861
0x104fad97 cp_parser_nested_name_specifier_opt
        /home/seurer/gcc/git/gcc-test/gcc/cp/parser.c:6543
0x104fbbab cp_parser_nested_name_specifier
        /home/seurer/gcc/git/gcc-test/gcc/cp/parser.c:6787
0x10505267 cp_parser_using_declaration
        /home/seurer/gcc/git/gcc-test/gcc/cp/parser.c:20130
0x1051c43b cp_parser_member_declaration
        /home/seurer/gcc/git/gcc-test/gcc/cp/parser.c:25448
0x104d7927 cp_parser_member_specification_opt
        /home/seurer/gcc/git/gcc-test/gcc/cp/parser.c:25310
0x104d7927 cp_parser_class_specifier_1
        /home/seurer/gcc/git/gcc-test/gcc/cp/parser.c:24399


More information about the Gcc-bugs mailing list