view gcc/testsuite/g++.dg/cpp0x/pr31437.C @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 1830386684a0
children
line wrap: on
line source

// { dg-do compile { target c++11 } }
template <typename... T> struct A // { dg-message "candidates|A" "" { target c++17_down } }
{
  A(T* p) {  // { dg-error "parameter packs|T" }
   (A<T...>*)(p); 
  }
};

A<int> a(0); // { dg-error "no matching|too many initializers" }