blob: 69c2d6989c7b2181681577f3da3ea0372c0bf5ba [file] [log] [blame]
// PR c++/35075
template<int&> struct A {};
template<typename T> struct B
{
static const T t;
A<t> a; // { dg-error "reference variable" }
};
B<int&> b; // { dg-message "required" }