]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: alias template equivalence and cv-quals [PR100032]
authorJason Merrill <jason@redhat.com>
Tue, 13 Apr 2021 18:49:29 +0000 (14:49 -0400)
committerJason Merrill <jason@redhat.com>
Tue, 13 Apr 2021 19:20:09 +0000 (15:20 -0400)
commit34ec63f1b5c2a4d39aa3b13ade96bcd44e294066
tree73bd3ff8abed9b276ef7bbfae86fa76fdf8f49d3
parent4df918798b445e86305b63f86f5312a18e4017c5
c++: alias template equivalence and cv-quals [PR100032]

We also need to check that the cv-qualifiers are the same.

gcc/cp/ChangeLog:

PR c++/100032
* pt.c (get_underlying_template): Compare TYPE_QUALS.

gcc/testsuite/ChangeLog:

PR c++/100032
* g++.dg/cpp0x/alias-decl-equiv1.C: New test.
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp0x/alias-decl-equiv1.C [new file with mode: 0644]