[LLVMbugs] [Bug 23450] New: Clang claims one overrider is ambiguous with itself

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu May 7 16:18:41 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=23450

            Bug ID: 23450
           Summary: Clang claims one overrider is ambiguous with itself
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: david.majnemer at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

consider:
struct A {
  virtual A *f();
};
struct B : virtual A {
  virtual B *f();
};
struct C : virtual B {
};
struct D : C, B {} d;

we emit:

error: virtual function 'A::f' has more than one final overrider in 'D'
note: final overrider of 'A::f' in 'B'
note: final overrider of 'A::f' in 'B'

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150507/a49bec49/attachment.html>


More information about the llvm-bugs mailing list