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
|
{
|
{
|
A_Type Func(); // { dg-error "does not name a type" } implicit typename
|
A_Type Func(); // { dg-error "does not name a type" } implicit typename
|
};
|
};
|
|
|
|
|
template
|
template
|
C::A_Type C::Func() { // { dg-error "typename" } implicit typename
|
C::A_Type C::Func() { // { dg-error "typename" } implicit typename
|
} // { dg-error "expected" }
|
} // { dg-error "expected" }
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.