1 //PR c++/29980 2 // { dg-do compile { target c++11 } } 3 4 struct A { typedef int X; }; // { dg-message "previous declaration" } 5 6 struct [[gnu::unused]] A::X; // { dg-error "typedef-name" } 7