aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/parse/template1.C
blob: d7bbb073f812416a38a4a961618050afd428958c (plain)
1
2
3
4
5
6
7
8
9
10
11
struct CPU {
    typedef int (*pfun)();

    template <pfun step1>
    static int dispatch();
};

template<int>
static int foo();

template int CPU::dispatch<&template foo<2> > (); // { dg-error "" }