URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 693 |
Rev 783 |
// { dg-do compile }
|
// { dg-do compile }
|
|
|
// Copyright (C) 2003 Free Software Foundation, Inc.
|
// Copyright (C) 2003 Free Software Foundation, Inc.
|
// Contributed by Nathan Sidwell 1 Aug 2003
|
// Contributed by Nathan Sidwell 1 Aug 2003
|
|
|
// PR 9447. Using decls in reopened template classes.
|
// PR 9447. Using decls in reopened template classes.
|
|
|
template struct A { int i; };
|
template struct A { int i; };
|
|
|
template struct B : public A
|
template struct B : public A
|
{
|
{
|
using A::i;
|
using A::i;
|
int foo() const;
|
int foo() const;
|
};
|
};
|
|
|
struct C {};
|
struct C {};
|
|
|
template int B::foo() const
|
template int B::foo() const
|
{
|
{
|
return i;
|
return i;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.