* g++.dg/template/friend11.C: New test.

From-SVN: r60725
This commit is contained in:
Neil Booth 2003-01-01 00:27:14 +00:00 committed by Neil Booth
parent ecc7182c22
commit d441394839
2 changed files with 22 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2003-01-01 Neil Booth <neil@daikokuya.co.uk>
* g++.dg/template/friend11.C: New test.
2003-01-01 Neil Booth <neil@daikokuya.co.uk>
* g++.dg/parse/parse1.C: New test.

View File

@ -0,0 +1,18 @@
/* PR c++/53 */
/* { dg-do compile } */
template <class T>
struct A {
template <class U> class B;
// Did not compile with gcc-2.95.2 (linux i686) :-(
template <class S> template <class U> friend class A<S>::B;
};
template <class S> template <class U> class A<S>::B {
};
int main(){
A<double>::B<double> ab;
return 0;
}