// PR c++/50800 template struct B; template struct B { typedef T type; }; struct A { typedef int TA __attribute__((__may_alias__)); }; void d() { B b; } int main() { B b; } // { dg-warning "attributes" }