[PATCH] D12023: Test triangle inheritance member poisoning

Naomi Musgrave via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 3 11:30:41 PDT 2015


nmusgrave marked 2 inline comments as done.

================
Comment at: test/msan/dtor-bit-fields.cc:48
@@ +47,3 @@
+  Packed p;
+  p.~Packed();
+  for (int i = 0; i < 4; i++)
----------------
eugenis wrote:
> UB, a destructor is called twice.
> 
I know the destructor is invoked here and when main exits, but how is that undefined behavior?


http://reviews.llvm.org/D12023





More information about the llvm-commits mailing list