[Bug c++/83689] Internal compiler error using is_trivially_default_constructible on array of nontrivially-destructible types

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jan 4 18:39:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83689

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
#include <type_traits>

struct X { X() {} };

void test01()
{
  static_assert(std::is_trivially_constructible<X[4]>::value);
}

ICEs too (but not std::is_constructible).


More information about the Gcc-bugs mailing list