re PR c++/14007 (Incorrect use of const partial specialization for reference template...
authorNathan Sidwell <nathan@codesourcery.com>
Fri, 2 Apr 2004 11:48:56 +0000 (11:48 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Fri, 2 Apr 2004 11:48:56 +0000 (11:48 +0000)
commit2e9ceb77befba5b08e2e27eeed70550e5be570b2
tree13ad1a30020e4179013face1ceb42aab4c129129
parentefe4ba3d352d1e1e4badcfa4982ad3007b94ef51
re PR c++/14007 (Incorrect use of const partial specialization for reference template argument)

cp:
PR c++/14007
* pt.c (check_cv_quals_for_unify): Correct logic for disallowed
cv-qualifier unification.
* tree.c (cp_build_qualified_type_real): Renable DR295 logic.
testsuite:
PR c++/14007
* g++.dg/template/unify5.C: New.
* g++.dg/template/unify6.C: New.
* g++.dg/template/qualttp20.C: Adjust.
* g++.old-deja/g++.jason/report.C: Adjust.
* g++.old-deja/g++.other/qual1.C: Adjust.

From-SVN: r80351
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/cp/tree.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/qualttp20.C
gcc/testsuite/g++.dg/template/unify5.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/unify6.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.jason/report.C
gcc/testsuite/g++.old-deja/g++.other/qual1.C