// PR c++/20552 // Origin: Ivan Godard template struct A { void foo() { typedef int T; // { dg-message "previous" } typedef __typeof__(*this) T; // { dg-error "conflicting" } } };