diff options
author | Jeffrey D. Oldham <oldham@codesourcery.com> | 2003-01-28 03:26:00 +0000 |
---|---|---|
committer | Jeffrey D. Oldham <oldham@gcc.gnu.org> | 2003-01-28 03:26:00 +0000 |
commit | 623baee2cff4707d6453d3ebccd7a5959f6566d2 (patch) | |
tree | 046914d39d0aec93f9c41d709e67d6caa21abc76 /gcc | |
parent | 8a3812735f1147d891dd448d4c524b34639784e2 (diff) | |
download | gcc-623baee2cff4707d6453d3ebccd7a5959f6566d2.zip gcc-623baee2cff4707d6453d3ebccd7a5959f6566d2.tar.gz gcc-623baee2cff4707d6453d3ebccd7a5959f6566d2.tar.bz2 |
re PR c++/47 (nested classes broken)
2003-01-27 Jeffrey D. Oldham <oldham@codesourcery.com>
PR c++/47
* g++.old-deja/g++.other/lookup24.C: New test.
From-SVN: r61950
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/lookup24.C | 25 |
2 files changed, 30 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 467fcca..34d32f4 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2003-01-27 Jeffrey D. Oldham <oldham@codesourcery.com> + + PR c++/47 + * g++.old-deja/g++.other/lookup24.C: New test. + 2003-01-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> PR middle-end/7227 diff --git a/gcc/testsuite/g++.old-deja/g++.other/lookup24.C b/gcc/testsuite/g++.old-deja/g++.other/lookup24.C new file mode 100644 index 0000000..c8988e2 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/lookup24.C @@ -0,0 +1,25 @@ +// Build don't link: +// +// Copyright (C) 2003 Free Software Foundation, Inc. +// Contributed by Raymond <raymond@magma.magma-da.com>. +// +// PR c++/47 The parser failed to resolve 'B' in the return type of +// A::C::D::foo. + +class A { +public: + class B; + class C; +}; + +class A::B { +}; + +class A::C { + class D; +}; + +class A::C::D { +public: + B* foo(); +}; |