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.0rc3/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [redecl1.C] - Rev 305
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
template <class T>
struct S1; // { dg-message "previous declaration" }
template <class T, class U>
struct S1 {}; // { dg-error "redeclared" } used 1 template parameter
template <class T = int> // { dg-message "original definition" }
struct S2;
template <class T = int>
struct S2; // { dg-error "redefinition of default" }
template <class T> // { dg-error "template parameter" }
struct S3;
template <int I>
struct S3; // { dg-error "redeclared here" }
template <template <class T> class C>
struct S3; // { dg-error "redeclared here" }
Go to most recent revision | Compare with Previous | Blame | View Log