blob: 9e5386deb47774b9603d64b6b1ce0cd4f19463e1 [file] [log] [blame]
// PR c++/63405
// { dg-do compile { target c++11 } }
template <typename _Tp> _Tp forward(_Tp);
template <typename Args> struct Format { Format(int, Args); };
template <typename... Args> auto format(Args &&... args) -> Format<Args...> {
return {0, args...};
}
template <typename... Args> void msg(Args... args) {
format(forward(args)...);
}
void some_function() { msg('x'); }