2
0
mirror of git://gcc.gnu.org/git/gcc.git synced 2025-01-11 08:54:35 +08:00

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

From-SVN: r60795
This commit is contained in:
Neil Booth 2003-01-02 19:27:31 +00:00 committed by Neil Booth
parent bf16e74582
commit f349fb24ba
2 changed files with 35 additions and 0 deletions
gcc/testsuite
ChangeLog
g++.dg/parse

View File

@ -1,3 +1,7 @@
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.

View File

@ -0,0 +1,31 @@
/* 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);
}