view gcc/testsuite/g++.dg/template/lookup14.C @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 2b5abeee2509
children
line wrap: on
line source

// PR c++/94799 - member template function lookup fails.

template<typename T>
struct A { };

template<typename T>
void fn (A<T> a)
{
  // Don't perform name lookup of foo when parsing this template.
  a.template A<T>::foo ();
}