Debian Codegraph @

gcc/testsuite/g++.dg/ext/typeof10.C

raw
1 // PR c++/20552
2 // Origin: Ivan Godard <[email protected]>
3
4 template<int> struct A
5 {
6 void foo()
7 {
8 typedef int T; // { dg-message "previous" }
9 typedef __typeof__(*this) T; // { dg-error "conflicting" }
10 }
11 };