URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
// Copyright (C) 2005 Free Software Foundation, Inc.
|
// Copyright (C) 2005 Free Software Foundation, Inc.
|
// Contributed by Nathan Sidwell 2 Apr 2005
|
// Contributed by Nathan Sidwell 2 Apr 2005
|
|
|
// PR 20723
|
// PR 20723
|
// Origin: Andrew Pinski
|
// Origin: Andrew Pinski
|
// Nathan Sidwell
|
// Nathan Sidwell
|
|
|
template class srp;
|
template class srp;
|
template struct ptr
|
template struct ptr
|
{
|
{
|
template ptr(const srp &other); // { dg-error "ptr::ptr" }
|
template ptr(const srp &other); // { dg-error "ptr::ptr" }
|
};
|
};
|
template struct srp
|
template struct srp
|
{
|
{
|
template operator ptr(void) const; // { dg-error "srp::operator" }
|
template operator ptr(void) const; // { dg-error "srp::operator" }
|
};
|
};
|
ptr parent_get()
|
ptr parent_get()
|
{
|
{
|
srp parent;
|
srp parent;
|
return parent; // { dg-error "is ambiguous" }
|
return parent; // { dg-error "is ambiguous" }
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.