Commit d4413948 by Neil Booth Committed by Neil Booth

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

From-SVN: r60725
parent ecc7182c
2003-01-01 Neil Booth <neil@daikokuya.co.uk> 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. * g++.dg/parse/parse1.C: New test.
2002-12-31 Janis Johnson <janis187@us.ibm.com> 2002-12-31 Janis Johnson <janis187@us.ibm.com>
......
/* 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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment