[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / ext / attrib50.C
blob9ff9918fb8039609e203e33043b9119bd98ad4ee
1 // PR c++/50800
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" }