| 1 |
// PR c++/100344 |
| 2 |
// { dg-do compile { target c++11 } } |
| 3 |
|
| 4 |
template <class> constexpr int find_index() { return 1; } |
| 5 |
|
| 6 |
template <int, class T> void foo(T); |
| 7 |
|
| 8 |
template <class T> void get(T v) { |
| 9 |
foo<find_index<T>()>(v); |
| 10 |
} |
| 11 |
|
| 12 |
int main() { |
| 13 |
get(0); |
| 14 |
} |