view gcc/testsuite/g++.dg/lookup/pr83287-2.C @ 152:2b5abeee2509

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

// PR c++/83287 failed to keep lookup until instantiation time

void foo ();

namespace {
  void foo ();
}

template <class T>
void
bar ()
{
  new T (foo); // { dg-error "cannot resolve" }
}

void
baz ()
{
  bar <double> ();
}