[LLVMbugs] [Bug 17629] New: [-fms-extensions] Allow multiply derived types to override ambiguously named members
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Oct 20 23:31:41 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=17629
Bug ID: 17629
Summary: [-fms-extensions] Allow multiply derived types to
override ambiguously named members
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++11
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 T1 {
virtual int Foo() = 0;
};
struct T2 {
virtual int Foo() = 0;
};
struct T3 : public virtual T1, public virtual T2 {
virtual int T1::Foo() { return 19; }
virtual int T2::Foo() { return 42; }
};
MSVC allows T1::Foo and T2::Foo to be overridden.
--
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/20131021/de648700/attachment.html>
More information about the llvm-bugs
mailing list