summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/non-dependent1.C
blob: d85ecb13ae49e2d1c537c1b5e773755816680426 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// PR c++/8921
// Origin: Chin-Lung Chang <evirt@iis.sinica.edu.tw>
// { dg-do compile }

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

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

void baz()
{
    A a;
    bar<int>(a);
}