URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
// { dg-do compile }
|
// { dg-do compile }
|
|
|
// Origin: Albert Chin
|
// Origin: Albert Chin
|
// Wolfgang Bangerth
|
// Wolfgang Bangerth
|
|
|
// PR c++/14513, unqualified lookup of friend class.
|
// PR c++/14513, unqualified lookup of friend class.
|
|
|
struct S {
|
struct S {
|
void test (void);
|
void test (void);
|
};
|
};
|
|
|
namespace NS {
|
namespace NS {
|
class X {
|
class X {
|
friend class S;
|
friend class S;
|
static int *i; // { dg-error "private" }
|
static int *i; // { dg-error "private" }
|
};
|
};
|
}
|
}
|
|
|
void S::test () {
|
void S::test () {
|
NS::X::i; // { dg-error "this context" }
|
NS::X::i; // { dg-error "this context" }
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.