mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-19 16:40:06 +08:00
* g++.dg/template/friend11.C: New test.
From-SVN: r60725
This commit is contained in:
parent
ecc7182c22
commit
d441394839
@ -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.
|
||||
|
18
gcc/testsuite/g++.dg/template/friend11.C
Normal file
18
gcc/testsuite/g++.dg/template/friend11.C
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user