Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/variadic-partial2a.C

raw
1 // PR c++/102547
2 // { dg-do compile { target c++11 } }
3 // A version of variadic-partial2.C where partial ordering is performed
4 // on function templates instead of class templates.
5
6 template<int... Vs>
7 struct vals { };
8
9 template<class V, class T>
10 void f(V, T) { };
11
12 template<int V0, int V1, class T>
13 void f(vals<V0, V1>, T) { };
14
15 template<int V0, int V1>
16 void f(vals<V0, V1>, char) { };
17
18 template void f(vals<1, 2>, char); //- "sorry, unimplemented..., ICE"
19
20 int main() {
21 f(vals<1, 3>{}, 'a'); //- "sorry, unimplemented..., ICE"
22 }