2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / parse / parse6.C
blob73f7256d3caf1a16b795286e66366bab6168a279
1 /* PR c++/3012 */
2 /* { dg-do compile } */
4 class A
6   public:
7     
8     template <class T>
9     void foo() const
10     {
11     }
14 template <class T>
15 class B
17   public:
18     
19     void bar(const A& a) const
20     {
21         // Compile used to fail with parse error before `;' token
22         a.foo<double>();
23     }
26 int main()
28     A a;
29     B<int> b;
30     b.bar(a);