repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Update ChangeLog and version files for release
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
nontype26.C
blob
763d987dd399d7970fb4e91fa5b7882bb29f1c96
1
// PR c++/31671
2
3
template<int& i> void doit() {
4
i = 0;
5
}
6
7
template<const int& i> class X {
8
public:
9
void foo() {
10
doit<i>(); // { dg-error "cv-qualification|no matching" }
11
}
12
};
13
14
int i = 0;
15
16
X<i> x;
17
18
int main() {
19
x.foo();
20
}