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
PR c++/85765 - SFINAE and non-type default template arg.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
variadic163.C
blob
1f3d90956d746f1ea802fc5f26fc97dfa3c11b58
1
// PR c++/63786
2
// { dg-do compile { target c++11 } }
3
// { dg-options "" }
4
5
template <int... Is>
6
int f(int i) {
7
switch (i) {
8
case Is: // { dg-error "not expanded" }
9
return 0;
10
}
11
12
switch (i) {
13
case 0 ...Is: // { dg-error "not expanded" }
14
return 0;
15
}
16
return 0;
17
}
18
19
int main() {
20
f<1,2,3>(1);
21
}