Commit f349fb24 by Neil Booth Committed by Neil Booth

* g++.dg/parse/parse6.C: New test.

From-SVN: r60795
parent bf16e745
2003-01-02 Neil Booth <neil@daikokuya.co.uk>
* g++.dg/parse/parse6.C: New test.
2003-01-02 Kazu Hirata <kazu@cs.umass.edu>
* gcc.dg/h8300-stack-1.c: New.
......
/* PR c++/3012 */
/* { dg-do compile } */
class A
{
public:
template <class T>
void foo() const
{
}
};
template <class T>
class B
{
public:
void bar(const A& a) const
{
// Compile used to fail with parse error before `;' token
a.foo<double>();
}
};
int main()
{
A a;
B<int> b;
b.bar(a);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment