Update ChangeLog and version files for release
[official-gcc.git] / gcc / testsuite / g++.dg / template / nontype26.C
blob763d987dd399d7970fb4e91fa5b7882bb29f1c96
1 // PR c++/31671
3 template<int& i> void doit() {
4   i = 0;
7 template<const int& i> class X {
8 public:
9     void foo() {
10       doit<i>();  // { dg-error "cv-qualification|no matching" }
11     }
14 int i = 0;
16 X<i> x;
18 int main() {
19   x.foo();