URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 305 |
Rev 338 |
// { dg-do assemble }
|
// { dg-do assemble }
|
// Copyright (C) 2000, 2002 Free Software Foundation, Inc.
|
// Copyright (C) 2000, 2002 Free Software Foundation, Inc.
|
// Contributed by Nathan Sidwell 17 Nov 2000
|
// Contributed by Nathan Sidwell 17 Nov 2000
|
|
|
// bug 43. Two failings, bison parser ickiness caused us to find the member
|
// bug 43. Two failings, bison parser ickiness caused us to find the member
|
// named the same as a friend, and then when instantiating, we'd lookup in
|
// named the same as a friend, and then when instantiating, we'd lookup in
|
// the wrong scope.
|
// the wrong scope.
|
|
|
namespace X {
|
namespace X {
|
template class P;
|
template class P;
|
|
|
template void operator- (const P&);
|
template void operator- (const P&);
|
|
|
template
|
template
|
struct V
|
struct V
|
{
|
{
|
V (const T&);
|
V (const T&);
|
|
|
void operator- ();
|
void operator- ();
|
friend void X::operator-<> (const P& a);
|
friend void X::operator-<> (const P& a);
|
};
|
};
|
}
|
}
|
|
|
int main()
|
int main()
|
{
|
{
|
X::V b(1.0);
|
X::V b(1.0);
|
|
|
return 0;
|
return 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.