aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/ref5.C
blob: 69c2d6989c7b2181681577f3da3ea0372c0bf5ba (plain)
1
2
3
4
5
6
7
8
9
10
11
// 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" }