https://llvm.org/bugs/show_bug.cgi?id=25370
Bug ID: 25370 Summary: [ms] Miscompile with explicit call of default construct of virtual base Product: clang Version: trunk Hardware: PC OS: All Status: NEW Severity: normal Priority: P Component: Frontend Assignee: unassignedclangb...@nondot.org Reporter: nicolaswe...@gmx.de CC: llvm-bugs@lists.llvm.org Classification: Unclassified Consider: struct Test { virtual ~Test() {} }; struct BrowserTest : virtual public Test {}; struct NonsecureURLRequestTest : public BrowserTest { NonsecureURLRequestTest() : BrowserTest() {} }; int main() { new NonsecureURLRequestTest(); } > clang-cl foo.cc -m32 > foo This crashes. (With or without optimizations, 32-bit and 64-bit.) If NonsecureURLRequestTest is defined like so struct NonsecureURLRequestTest : public BrowserTest { NonsecureURLRequestTest() {} }; then everything works fine. This causes the test failure in http://crbug.com/549765 -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs