[llvm-bugs] [Bug 36569] New: No warning when inherited types are reordered
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Mar 2 06:00:44 PST 2018
https://bugs.llvm.org/show_bug.cgi?id=36569
Bug ID: 36569
Summary: No warning when inherited types are reordered
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: dave at znu.io
CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
The code below causes the compiler to silently reorder the types inherited by
'Fob'. I wish the compiler emitted a warning when this was happening.
class Foo {
int a, b, c;
};
class Bar {
int j, k, l;
public:
virtual ~Bar();
};
class Fob : public Foo, public Bar { // Foo and Bar are swapped in the LLVM IR.
int x, y, z;
};
--
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/20180302/acb236d0/attachment.html>
More information about the llvm-bugs
mailing list