new
From-SVN: r23692
This commit is contained in:
parent
8ebeee52bc
commit
7a78c20bc9
25
gcc/testsuite/g++.old-deja/g++.other/access3.C
Normal file
25
gcc/testsuite/g++.old-deja/g++.other/access3.C
Normal file
@ -0,0 +1,25 @@
|
||||
// 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 *-*-*
|
||||
}
|
6
gcc/testsuite/g++.old-deja/g++.pt/memtemp79.C
Normal file
6
gcc/testsuite/g++.old-deja/g++.pt/memtemp79.C
Normal file
@ -0,0 +1,6 @@
|
||||
// Build don't link:
|
||||
|
||||
struct foo {
|
||||
template<typename T> static void bar( foo* );
|
||||
template<typename T> void bar() const; // gets bogus error - quals XFAIL *-*-*
|
||||
};
|
Loading…
Reference in New Issue
Block a user