https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72849
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Tue Aug 9 14:37:12 2016 New Revision: 239289 URL: https://gcc.gnu.org/viewcvs?rev=239289&root=gcc&view=rev Log: PR c++/72849 - ICE with incomplete class. * constexpr.c (cxx_eval_constant_expression): Check COMPLETE_TYPE_P before calling is_really_empty_class. * class.c (is_really_empty_class): Don't call complete_type. Added: trunk/gcc/testsuite/g++.dg/template/incomplete7.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/class.c trunk/gcc/cp/constexpr.c