aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/pr31437.C
blob: 5f7010fe6a128b5e9760a8607f600e4f6a2d0f25 (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-do compile { target c++11 } }
template <typename... T> struct A // { dg-message "candidates|A" }
{
  A(T* p) {  // { dg-error "parameter packs|T" }
   (A<T...>*)(p); 
  }
};

A<int> a(0); // { dg-error "no matching" }
// { dg-message "candidate" "candidate note" { target *-*-* } 9 }