https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67131
--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Tue Aug 9 04:33:42 2016 New Revision: 239267 URL: https://gcc.gnu.org/viewcvs?rev=239267&root=gcc&view=rev Log: Fix empty class parameters with constexpr. PR c++/67131 * class.c (is_really_empty_class): Call complete_type. * constexpr.c (cxx_eval_constant_expression): Check is_really_empty_class. (potential_constant_expression_1): Likewise. Check for error type. Added: trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-empty12.C trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-empty13.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/class.c trunk/gcc/cp/constexpr.c trunk/gcc/testsuite/g++.dg/cpp1y/var-templ42.C