]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/g++.dg/cpp0x/variadic163.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / variadic163.C
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 }
This page took 0.037798 seconds and 5 git commands to generate.