diff options
author | Mark Mitchell <mark@codesourcery.com> | 2001-04-10 18:06:26 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2001-04-10 18:06:26 +0000 |
commit | 78b45a2404bade7c7a5178fa882129811ff08790 (patch) | |
tree | 5f0d77378e5aadab31152264b12a765ca92dd6e1 /gcc/testsuite | |
parent | 0450d74d53b419f6455d9fc4f12ccf2a37ce61b8 (diff) | |
download | gcc-78b45a2404bade7c7a5178fa882129811ff08790.zip gcc-78b45a2404bade7c7a5178fa882129811ff08790.tar.gz gcc-78b45a2404bade7c7a5178fa882129811ff08790.tar.bz2 |
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
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/override1.C | 20 |
1 files changed, 20 insertions, 0 deletions
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 <fp@fpx.de> + +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 {}; |