[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / template / ref5.C
blob69c2d6989c7b2181681577f3da3ea0372c0bf5ba
1 // PR c++/35075
3 template<int&> struct A {};
5 template<typename T> struct B
7   static const T t;
8   A<t> a;                       // { dg-error "reference variable" }
9 };
11 B<int&> b;                      // { dg-message "required" }