| 1 |
// { dg-do compile { target c++11 } } |
| 2 |
// Error: Explicit instantiation of a function template shall not use the |
| 3 |
// inline or constexpr specifiers |
| 4 |
template<class T> constexpr inline T bar(T x) { return x; } |
| 5 |
template constexpr inline float bar(float x); // { dg-error "specifier" } |