| 1 |
// PR c++/50800 |
| 2 |
|
| 3 |
template <typename T> struct B; |
| 4 |
template <typename T> struct B<T &> { |
| 5 |
typedef T type; |
| 6 |
}; |
| 7 |
struct A { |
| 8 |
typedef int TA __attribute__((__may_alias__)); |
| 9 |
}; |
| 10 |
void d() { B<int &> b; } |
| 11 |
int main() { B<A::TA &> b; } // { dg-warning "attributes" } |