URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 305 |
Rev 338 |
// { dg-do assemble }
|
// { dg-do assemble }
|
// { dg-options "-Wno-deprecated" }
|
// { dg-options "-Wno-deprecated" }
|
|
|
template
|
template
|
struct A
|
struct A
|
{
|
{
|
typedef T A_Type;
|
typedef T A_Type;
|
};
|
};
|
|
|
|
|
template
|
template
|
struct B : public A
|
struct B : public A
|
{
|
{
|
};
|
};
|
|
|
|
|
template
|
template
|
struct C : public B
|
struct C : public B
|
{
|
{
|
void Func(A_Type); // { dg-error "has not been declared" } implicit typename
|
void Func(A_Type); // { dg-error "has not been declared" } implicit typename
|
};
|
};
|
|
|
|
|
template
|
template
|
void C::Func(A_Type) { // { dg-error "declared void" "void" } implicit typename
|
void C::Func(A_Type) { // { dg-error "declared void" "void" } implicit typename
|
// { dg-error "not declared" "decl" { target *-*-* } 25 }
|
// { dg-error "not declared" "decl" { target *-*-* } 25 }
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.