summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/error54.C
blob: 2933bb5aea55c076f390b890323b66dc4e715127 (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/56380

template <typename T>
struct X {
  X();
  mutable T x;  // { dg-error "cannot be declared" }
};

X<const int> a; // { dg-message "required from here" }
X<int&> b;      // { dg-message "required from here" }