https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91921
Bug ID: 91921
Summary: Incomplete -Woverloaded-virtual warning when base
class is in system header
Product: gcc
Version: 9.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: andrey.vihrov at gmail dot com
Target Milestone: ---
Compiling the following preprocessed source:
# 1 "foo.h" 3
struct A
{
virtual void f();
};
# 1 "bar.h"
struct B : A
{
void f(int);
};
with "g++ -c test.ii -Woverloaded-virtual" gives
bar.h:3:8: warning: by 'void B::f(int)' [-Woverloaded-virtual]
The first part of the warning is missing.