summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/ref5.C
blob: efefbef9c2611e56c9c9fc37a53677141eb90907 (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 "instantiated" }