URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
// { dg-do compile }
|
// { dg-do compile }
|
|
|
// Copyright (C) 2003 Free Software Foundation, Inc.
|
// Copyright (C) 2003 Free Software Foundation, Inc.
|
// Contributed by Nathan Sidwell 14 Aug 2003
|
// Contributed by Nathan Sidwell 14 Aug 2003
|
|
|
// instantiated from did not indicate the nested class
|
// instantiated from did not indicate the nested class
|
|
|
template struct X
|
template struct X
|
{
|
{
|
T m; // { dg-error "" "" }
|
T m; // { dg-error "" "" }
|
};
|
};
|
|
|
template
|
template
|
struct Derived
|
struct Derived
|
{
|
{
|
class Nested : public X
|
class Nested : public X
|
{ // { dg-error "instantiated" "" }
|
{ // { dg-error "instantiated" "" }
|
};
|
};
|
|
|
Nested m; // { dg-error "instantiated" "" }
|
Nested m; // { dg-error "instantiated" "" }
|
|
|
void Foo ();
|
void Foo ();
|
};
|
};
|
|
|
void Foo (Derived &x)
|
void Foo (Derived &x)
|
{
|
{
|
x.Foo (); // { dg-error "instantiated" "" }
|
x.Foo (); // { dg-error "instantiated" "" }
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.