c++: Fix alias comparison [PR98926]
authorJason Merrill <jason@redhat.com>
Wed, 3 Feb 2021 05:29:00 +0000 (00:29 -0500)
committerJason Merrill <jason@redhat.com>
Wed, 3 Feb 2021 17:50:18 +0000 (12:50 -0500)
commit5c62e4f255bfac65e18213fd93ee1c9908b4a750
tree2d5227e4e90c13b9f75c484e536da700115625d3
parent5c3d388aee5609d32bd8e3ba1add776b1a6f0d1f
c++: Fix alias comparison [PR98926]

The comparison of dependent aliases wasn't working here because
processing_template_decl wasn't set, so dependent_alias_template_spec_p was
always returning false.

gcc/cp/ChangeLog:

PR c++/98926
PR c++/98570
* pt.c (spec_hasher::equal): Set processing_template_decl.
* Make-lang.in (check-g++-strict-gc): Add --param
hash-table-verification-limit=10000.

gcc/testsuite/ChangeLog:

* g++.dg/cpp0x/alias-decl-dr1558.C: Pass --param
hash-table-verification-limit=10000.
gcc/cp/Make-lang.in
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp0x/alias-decl-dr1558.C