From 2ec910bf6806890493520dbe43c64c79d6a379c0 Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Mon, 3 May 1999 15:08:33 +0000 Subject: * search.c (lookup_field_r): Set the TREE_TYPE of an ambiguous lookup to error_mark_node here. (lookup_member): Revise documentation. Add comments. Don't set the TREE_TYPE to error_mark_node here, and don't build up an extra TREE_LIST for ambiguous lookups. (setup_class_bindings): Adjust accordingly. (push_class_decls): Revise out-of-date comments. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@26754 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/g++.old-deja/g++.pt/typedef4.C | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 gcc/testsuite/g++.old-deja/g++.pt/typedef4.C (limited to 'gcc/testsuite') diff --git a/gcc/testsuite/g++.old-deja/g++.pt/typedef4.C b/gcc/testsuite/g++.old-deja/g++.pt/typedef4.C new file mode 100644 index 00000000000..4b1c5d82598 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/typedef4.C @@ -0,0 +1,17 @@ +// Build don't link: +// Origin: Mark Mitchell + +struct B1 { + typedef int X; +}; + +struct B2 { + typedef int X; +}; + +template +struct D : public B1, public B2 { + typedef int X; +}; + +template struct D; -- cgit v1.2.3