[PATCH] D26007: [libc++] Cleanup non-portable std::any tests

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 26 13:31:19 PDT 2016


EricWF added inline comments.


================
Comment at: test/libcxx/utilities/any/any.class/any.cons/value.pass.cpp:36
+    using DecayTag = std::decay_t<BadTag>;
+    static_assert(!std::is_constructible<std::any, DecayTag>::value, "");
+}
----------------
CaseyCarter wrote:
> I'm generously calling this a "libc++ extension." From my interpretation of N4606, LWG2744, and LWG2754, this appears to be a bug.
I agree. I want this to be a diagnostic of some sort. Preferably a static warning because if you've managed to decay the tags your in for a treat.


Repository:
  rL LLVM

https://reviews.llvm.org/D26007





More information about the cfe-commits mailing list