diff options
author | Mark Mitchell <mark@codesourcery.com> | 1999-05-03 15:08:33 +0000 |
---|---|---|
committer | Mark Mitchell <mark@codesourcery.com> | 1999-05-03 15:08:33 +0000 |
commit | 2ec910bf6806890493520dbe43c64c79d6a379c0 (patch) | |
tree | 4f8d68559a4ca64c60ede627fb30d919f290f50c /gcc/testsuite | |
parent | 0aab9f4966875677f540a95f43fc99f5ede16279 (diff) |
* 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
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/typedef4.C | 17 |
1 files changed, 17 insertions, 0 deletions
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 <mark@codesourcery.com> + +struct B1 { + typedef int X; +}; + +struct B2 { + typedef int X; +}; + +template <class T> +struct D : public B1, public B2 { + typedef int X; +}; + +template struct D<int>; |