diff options
author | Doug Evans <dje@google.com> | 2013-06-05 22:28:51 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2013-06-05 22:28:51 +0000 |
commit | 69fc87c263bbfcb062d993d70ea1e97813cd3d29 (patch) | |
tree | 67828f66c8a30e5a71a7d94a824c0d0238a1e907 /gdb/testsuite/gdb.cp/derivation.cc | |
parent | a513d1e8c0893e74ec26dd38dde8f313d7b8b1ba (diff) | |
download | gdb-69fc87c263bbfcb062d993d70ea1e97813cd3d29.zip gdb-69fc87c263bbfcb062d993d70ea1e97813cd3d29.tar.gz gdb-69fc87c263bbfcb062d993d70ea1e97813cd3d29.tar.bz2 |
PR 15519
* cp-namespace.c (find_symbol_in_baseclass): Call
cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
Check result of call to lookup_symbol_static.
Call lookup_static_symbol_aux unconditionally.
Call check_typedef on base types before accessing them.
(cp_lookup_nested_symbol): Fix comment.
testsuite/
* gdb.cp/derivation2.cc: New file.
* gdb.cp/derivation.cc (main): Call foo2.
* gdb.cp/derivation.exp: Add tests for typedefs in another
file, and when there's an active block.
Diffstat (limited to 'gdb/testsuite/gdb.cp/derivation.cc')
-rw-r--r-- | gdb/testsuite/gdb.cp/derivation.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.cp/derivation.cc b/gdb/testsuite/gdb.cp/derivation.cc index 0a6a24d..2fefe79 100644 --- a/gdb/testsuite/gdb.cp/derivation.cc +++ b/gdb/testsuite/gdb.cp/derivation.cc @@ -16,6 +16,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ +extern void foo2 (); /* from derivation2.cc */ + namespace N { typedef double value_type; struct Base { typedef int value_type; }; @@ -306,9 +308,7 @@ int main(void) N::Derived::value_type d = 1; N::value_type n = 3.0; dobj.doit (); + foo2 (); return 0; } - - - |