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
c++: robustify testcase [PR109752]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
nontype26.C
blob
588ce1cc23a79c025a4a006776de92546c3fe2ad
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 "qualifi|template arg|no matching" }
11
}
12
};
13
14
int i = 0;
15
16
X<i> x;
17
18
int main() {
19
x.foo();
20
}