diff options
author | oldham <oldham@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-01-28 03:26:00 +0000 |
---|---|---|
committer | oldham <oldham@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-01-28 03:26:00 +0000 |
commit | 2b9c2d46199e4f0c1fbca52686905bf367d9e27e (patch) | |
tree | 046914d39d0aec93f9c41d709e67d6caa21abc76 /gcc/testsuite | |
parent | 3968abe051220c77bd994af908ddd1e1f2624a3b (diff) | |
download | gcc-2b9c2d46199e4f0c1fbca52686905bf367d9e27e.tar.gz |
2003-01-27 Jeffrey D. Oldham <oldham@codesourcery.com>
PR c++/47
* g++.old-deja/g++.other/lookup24.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61950 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite')
-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 467fcca27f6..34d32f4e9c5 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 00000000000..c8988e278d1 --- /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(); +}; |