view gcc/testsuite/g++.dg/cpp1y/auto-fn28.C @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
line wrap: on
line source

// PR c++/67257
// { dg-do compile { target c++14 } }

template <typename> struct plus;
template <typename> struct A {
  template <typename T> auto operator()(T);
} foldl;			// { dg-error "" }
void foo() { foldl<plus<int>>(0); }

// { dg-prune-output "not declared" }
// { dg-prune-output "expected" }