rsmith added a comment.

As it happens, the C++ committee fixed the language wording hole here very 
recently. The new rule can be found here: http://wg21.link/p0968r0#2227
In summary: we should to consider the destructor for all elements of the 
aggregate to be potentially-invoked.
@rjmccall Were you suggesting that we should also consider the destructor of 
the aggregate itself to be potentially-invoked, or just the elements? In the 
//new-expression// case at least, I don't think the former is permitted.


Repository:
  rC Clang

https://reviews.llvm.org/D45898



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
  • [PATCH] D45898: [... Akira Hatanaka via Phabricator via cfe-commits
    • [PATCH] D458... Richard Smith - zygoloid via Phabricator via cfe-commits
    • [PATCH] D458... John McCall via Phabricator via cfe-commits
    • [PATCH] D458... Akira Hatanaka via Phabricator via cfe-commits

Reply via email to