diff options
author | Mark Mitchell <mark@codesourcery.com> | 2001-11-29 22:01:58 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2001-11-29 22:01:58 +0000 |
commit | 7d5b8b116ee53bd38bd23bb6cf5577b3fec72000 (patch) | |
tree | fb078c647428342b9b08d1fda114e228d490f969 /gcc/testsuite | |
parent | 45aff9968ebeae5b26dd05f39242ab9e17ad0797 (diff) | |
download | gcc-7d5b8b116ee53bd38bd23bb6cf5577b3fec72000.zip gcc-7d5b8b116ee53bd38bd23bb6cf5577b3fec72000.tar.gz gcc-7d5b8b116ee53bd38bd23bb6cf5577b3fec72000.tar.bz2 |
re PR c++/4842 (-Woverloaded-virtual does not work)
PR c++/4842
* class.c (get_basefndecls): Take an IDENTIFIER_NODE, not a
FUNCTION_DECL, as input.
(mark_overriders): Remove.
(warn_hidden): Rework for the new ABI.
From-SVN: r47458
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.warn/virt1.C | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.warn/virt1.C b/gcc/testsuite/g++.old-deja/g++.warn/virt1.C new file mode 100644 index 0000000..2712add --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.warn/virt1.C @@ -0,0 +1,10 @@ +// Special g++ Options: -Woverloaded-virtual +// Build don't link: + +struct A { + virtual void f(); // WARNING - hidden +}; + +struct B: public A { + void f(int); // WARNING - by this +}; |