OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [parse/] [parse6.C] - Blame information for rev 825

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* PR c++/3012 */
2
/* { dg-do compile } */
3
 
4
class A
5
{
6
  public:
7
 
8
    template 
9
    void foo() const
10
    {
11
    }
12
};
13
 
14
template 
15
class B
16
{
17
  public:
18
 
19
    void bar(const A& a) const
20
    {
21
        // Compile used to fail with parse error before `;' token
22
        a.foo();
23
    }
24
};
25
 
26
int main()
27
{
28
    A a;
29
    B b;
30
    b.bar(a);
31
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.