blob: fe9925d0f3f198479035e15dddca1099e7fbf11a [file] [log] [blame]
// Test for proper non-deduced context handling of the initializer
// for an auto declaration/new.
// { dg-do compile { target c++11 } }
struct with_apply
{
template <unsigned>
void apply(const double&){}
};
auto p = &with_apply::apply<0>;
auto pp = new auto(&with_apply::apply<0>);
template <class T>
void f()
{
auto p = &T::template apply<0>;
}
template void f<with_apply>();