aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-array-bounds.cc
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2021-03-08 10:01:21 -0800
committerNathan Sidwell <nathan@acm.org>2021-03-08 10:08:51 -0800
commitded6a1953dd7f43229c44e5d0d17c264338a3f4c (patch)
treed6152c9982472c8080f11a2ff4337bea81d68295 /gcc/gimple-array-bounds.cc
parent0d9a70ea3881c284b7689b691d54d047b55b486d (diff)
downloadgcc-ded6a1953dd7f43229c44e5d0d17c264338a3f4c.zip
gcc-ded6a1953dd7f43229c44e5d0d17c264338a3f4c.tar.gz
gcc-ded6a1953dd7f43229c44e5d0d17c264338a3f4c.tar.bz2
c++: Incorrect specialization hash table [PR 99285]
Class template partial specializations need to be in the specialization hash, but not all of them. This defers adding streamed-in entities to the hash table, in the same way I deferred adding the instantiation and specialization lists for 99170. PR c++/99285 gcc/cp/ * cp-tree.h (match_mergeable_specialization) (add_mergeable_specialization): Adjust parms. * module.cc (trees_in::decl_value): Adjust add_mergeable_specialization calls. (trees_out::key_mergeable): Adjust match_mergeable_specialization calls. (specialization_add): Likewise. * pt.c (match_mergeable_specialization): Do not insert. (add_mergeable_specialization): Add to hash table here. gcc/testsuite/ * g++.dg/modules/pr99285_a.H: New. * g++.dg/modules/pr99285_b.H: New.
Diffstat (limited to 'gcc/gimple-array-bounds.cc')
0 files changed, 0 insertions, 0 deletions