[LLVMbugs] [Bug 9209] New: Poor quality message from -Woverloaded-virtual

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Feb 13 14:31:38 PST 2011


           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: unassignedclangbugs at nondot.org
        ReportedBy: chris at bubblescope.net
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com

Given the following code (the strange formatting just helps show the problem:)

struct Y
    virtual void f(

struct X : public Y
    void f(

clang++ -Woverloaded-virtual gives the warning:

t.cc:9:7: warning: 'X::f' hides overloaded virtual function
        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.

More information about the llvm-bugs mailing list