summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/template10.C
blob: d5dec6ed1119fe06b09bcd2495abcc2a61db04fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// PR c++/9486
// Origin: John Levon <levon@movementarian.org>
// { dg-do compile }

template <typename> struct A
{
    template <typename T> void foo(T);
};

template <typename T> void bar()
{
    A<void>().template foo<T>(0);
}

template void bar<int>();