[LLVMbugs] [Bug 10195] New: code with no apparent errors generates a lone "note: X declared here" warning
    bugzilla-daemon at llvm.org 
    bugzilla-daemon at llvm.org
       
    Sat Jun 25 13:48:51 PDT 2011
    
    
  
http://llvm.org/bugs/show_bug.cgi?id=10195
           Summary: code with no apparent errors generates a lone "note: X
                    declared here" warning
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: ori at avtalion.name
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Using r133872
Compiling this:
struct A {
    virtual ~A();
    virtual void Foo() = 0;
};
struct B  {
    ~B();
    A *_a;
};
B::~B() {
    _a->Foo();
}
Yields:
$ clang++ -fsyntax-only a.cpp
a.cpp:3:2: note: 'Foo' declared here
        virtual void Foo() = 0;
Why is this 'note' printed?
-- 
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