Create embedded-5_0-branch branch for development on ARM embedded cores.
[official-gcc.git] / embedded-5_0-branch / gcc / testsuite / g++.old-deja / g++.pt / bad-type.C
blobfffa8c5310c283b5a3da8c987d847cd63c416bc7
1 // { dg-do assemble  }
2 template<class Type>
3 class A
5 public:
6   Type m;
7 };
9 template<class Type>
10 void f(A<Type>& a, Type d)
12   A.m=d; // { dg-error "" } invalid use of template
15 int main()
17   A<int> a;
18   f(a,2);