diff options
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/parse/access9.C | 5 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/tc1/dr52.C | 4 |
3 files changed, 13 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 07b9a0df5f7..6ec417fb7df 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2006-01-04 Mark Mitchell <mark@codesourcery.com> + + PR c++/24782 + * g++.dg/parse/access9.C: New test. + * g++.dg/tc1/dr52.C: Tweak error markers. + 2006-01-04 Richard Henderson <rth@redhat.com> Merge from gomp branch. diff --git a/gcc/testsuite/g++.dg/parse/access9.C b/gcc/testsuite/g++.dg/parse/access9.C new file mode 100644 index 00000000000..2c29016b047 --- /dev/null +++ b/gcc/testsuite/g++.dg/parse/access9.C @@ -0,0 +1,5 @@ +// PR c++/24782 + +class Foo { public: typedef int type1; }; +class Bar { private: typedef Foo type2; }; // { dg-error "private" } +void g(Bar::type2::type1) {} // { dg-error "context" } diff --git a/gcc/testsuite/g++.dg/tc1/dr52.C b/gcc/testsuite/g++.dg/tc1/dr52.C index b0896d73fa7..4f4015dc958 100644 --- a/gcc/testsuite/g++.dg/tc1/dr52.C +++ b/gcc/testsuite/g++.dg/tc1/dr52.C @@ -17,7 +17,7 @@ struct B1 : B {}; struct B2 : B {}; struct C -{ +{ // { dg-error "C" } void foo(void); }; @@ -29,6 +29,6 @@ public: void bar(void) { this->B::foo(); // { dg-error "" } - this->C::foo(); // { dg-error "" } + this->C::foo(); // { dg-error "inaccessible|context" } } }; |