URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
/* PR c++/30917 */
|
/* PR c++/30917 */
|
/* This used to ICE */
|
/* This used to ICE */
|
/* { dg-do "compile" } */
|
/* { dg-do "compile" } */
|
|
|
|
|
// This is invalid: QGList must only be looked up in count.
|
// This is invalid: QGList must only be looked up in count.
|
class QGList;
|
class QGList;
|
unsigned count() {
|
unsigned count() {
|
class QGListIterator {
|
class QGListIterator {
|
friend class QGList;
|
friend class QGList;
|
QGListIterator( const QGList & ); /* { dg-error "expected|with no type" } */
|
QGListIterator( const QGList & ); /* { dg-error "expected|with no type" } */
|
};
|
};
|
return 0;
|
return 0;
|
}
|
}
|
|
|
// This is valid.
|
// This is valid.
|
unsigned count2() {
|
unsigned count2() {
|
class QGList2;
|
class QGList2;
|
class QGListIterator2 {
|
class QGListIterator2 {
|
friend class QGList2;
|
friend class QGList2;
|
QGListIterator2( const QGList2 & );
|
QGListIterator2( const QGList2 & );
|
};
|
};
|
return 0;
|
return 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.