OSDN Git Service

* g++.old-deja/g++.law/visibility13.C: Remove "instantiated from
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / crash20.C
1 // Build don't link:
2
3 template <class T = int>
4 struct A { const T x; A() : x(0) { } A(T x) : x(x) { } }; 
5
6 template <class B>
7 void func () { B y; y = B(); } // ERROR - can't use default assignment
8
9 int main (void) { func< A<> >(); }