summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/vt-35147.C
blob: fecb36ec8c9a123a63fa5b1fe547141b2f3f870f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// { dg-options "-std=c++0x" }

template<typename _Tp>
  _Tp&& forward(_Tp&& __t) { return __t; } // { dg-message "note" }

void f(...);

template<typename... Args>
void g(Args&&... args)
{
  f(forward<Args...>(args...)); // { dg-error "no matching" }
  // { dg-message "candidate" "candidate note" { target *-*-* } 11 }
}

void h()
{
  g();
}