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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.jason/] [template15.C] - Diff between revs 305 and 338

Only display areas with differences | Details | Blame | View Log

Rev 305 Rev 338
// { dg-do run  }
// { dg-do run  }
// PRMS Id: 2139
// PRMS Id: 2139
// Bug: g++ tries to instantiate the template with types on the function
// Bug: g++ tries to instantiate the template with types on the function
// obstack and fails.
// obstack and fails.
template
template
class X {
class X {
public:
public:
    X(int) { }
    X(int) { }
    T x;
    T x;
};
};
class A { };
class A { };
int main()
int main()
{
{
    int i;
    int i;
    X xi(i);
    X xi(i);
    X xd(i);
    X xd(i);
    X fp0(i);
    X fp0(i);
    X fp1(i);
    X fp1(i);
    X fp2(i);
    X fp2(i);
    X mp0 (i);
    X mp0 (i);
    X mp1 (i);
    X mp1 (i);
}
}
 
 

powered by: WebSVN 2.1.0

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