Commit 7a78c20b by Jason Merrill

new

From-SVN: r23692
parent 8ebeee52
// The standard sez that a use of a name gets the most access it can through
// the various paths that can reach it. Here, the access decl in B gives
// us access.
struct A
{
void f (); // gets bogus error - ref below XFAIL *-*-*
};
struct B: private virtual A
{
A::f;
};
struct C: private virtual A, public B
{
};
int
main ()
{
C c;
c.f (); // gets bogus error - private XFAIL *-*-*
}
// Build don't link:
struct foo {
template<typename T> static void bar( foo* );
template<typename T> void bar() const; // gets bogus error - quals XFAIL *-*-*
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment