1 // { dg-options "-std=c++0x" } 2 3 template<typename _Tp> forward(_Tp && __t)4 _Tp&& forward(_Tp&& __t) { return __t; } // { dg-message "note" } 5 6 void f(...); 7 8 template<typename... Args> g(Args &&...args)9void g(Args&&... args) 10 { 11 f(forward<Args...>(args...)); // { dg-error "no matching" } 12 // { dg-message "candidate" "candidate note" { target *-*-* } 11 } 13 } 14 h()15void h() 16 { 17 g(); 18 } 19