re PR c++/6256 (Seg fault for template friends in namespaces, regression from 2.95)
authorMark Mitchell <mark@codesourcery.com>
Tue, 23 Apr 2002 08:37:23 +0000 (08:37 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 23 Apr 2002 08:37:23 +0000 (08:37 +0000)
commit77adef8498fb09947e889abbacb1d2bd8ece0929
tree8aea9d9d97169d2716e25282e4a96b9738fd5d84
parent8d3441e0096bf053216a1c89bd13fe3d42c75251
re PR c++/6256 (Seg fault for template friends in namespaces, regression from 2.95)

PR c++/6256:
* pt.c (tsubst_friend_class): Handle templates with explicit
nested names.

PR c++/6331:
* typeck.c (merge_types): Remember the cv-qualification of pointer
types when merging them.

PR c++/6256:
* g++.dg/template/friend5.C: New test.

PR c++/6331:
* g++.dg/template/qual1.C: Likewise.

From-SVN: r52661
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/friend5.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/qual1.C [new file with mode: 0644]