From 78b45a2404bade7c7a5178fa882129811ff08790 Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Tue, 10 Apr 2001 18:06:26 +0000 Subject: class.c (find_final_overrider_data): Add `candidates'. * class.c (find_final_overrider_data): Add `candidates'. (dfs_find_final_overrider): Don't issue error messages prematurely. (find_final_overrider): Issue error messages here. (build_base_field): Don't warn about amgibuous direct bases here. (warn_about_ambiguous_direct_bases): New function. (layout_class_type): Use it. From-SVN: r41224 --- gcc/testsuite/g++.old-deja/g++.other/override1.C | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 gcc/testsuite/g++.old-deja/g++.other/override1.C (limited to 'gcc/testsuite') diff --git a/gcc/testsuite/g++.old-deja/g++.other/override1.C b/gcc/testsuite/g++.old-deja/g++.other/override1.C new file mode 100644 index 0000000..c7f3a4c --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/override1.C @@ -0,0 +1,20 @@ +// Build don't link: +// Origin: Frank Pilhofer + +struct A { +virtual void f (); +}; + +struct B : virtual public A { +void f (); +}; + +struct C : virtual public A { +void f (); +}; + +struct D : virtual public B, virtual public C { +void f (); +}; + +struct Di : virtual public B, virtual public C, virtual public D {}; -- cgit v1.1