OSDN Git Service

/cp
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / ext / typeof10.C
1 // PR c++/20552
2 // Origin: Ivan Godard <igodard@pacbell.net>
3
4 template<int> struct A
5 {
6   void foo()
7   {
8     typedef int T;                // { dg-error "previous" }
9     typedef __typeof__(*this) T;  // { dg-error "conflicting" }
10   }
11 };