http://llvm.org/bugs/show_bug.cgi?id=9209
Summary: Poor quality message from -Woverloaded-virtual
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Given the following code (the strange formatting just helps show the problem:)
struct Y
{
virtual void f(
int);
};
struct X : public Y
{
void f(
double);
};
clang++ -Woverloaded-virtual gives the warning:
t.cc:9:7: warning: 'X::f' hides overloaded virtual function
[-Woverloaded-virtual]
void f(
^
t.cc:3:15: note: hidden overloaded virtual function 'Y::f' declared here
virtual void f(
^
It would be very helpful to me if clang outputed the type of X::f and Y::f. In
the code base I am looking at I am having trouble tracing the macros and
typedefs, and the types look the same to me.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs