dim added a comment. In https://reviews.llvm.org/D44536#1039420, @rjmccall wrote:
> I'm not sure it's supposed to be a valid state to get into IRGen with a > non-trivial destructor that isn't yet declared. Richard? As a side note, clang also emits a warning about it (but then crashes :) ): VMMapsMain-minimized.cpp:10:18: warning: deleting pointer to incomplete type 'c' may cause undefined behavior virtual ~d() { delete e; } ^ ~ VMMapsMain-minimized.cpp:7:7: note: forward declaration of 'c' class c; ^ Segmentation fault Repository: rC Clang https://reviews.llvm.org/D44536 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits