]> gcc.gnu.org Git - gcc.git/commit - gcc/cp/constexpr.cc
PR c++/72849 - ICE with incomplete class.
authorJason Merrill <jason@redhat.com>
Tue, 9 Aug 2016 14:37:12 +0000 (10:37 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 9 Aug 2016 14:37:12 +0000 (10:37 -0400)
commitf4fce1837cb18401b714379b7b18ede89b9d4fe5
treed4fe460d03cc97a614f2d409ef0bc31a0ae16c96
parent810a3aa6bbdc5d2fd058f60683ea5c22c427eddd
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.

From-SVN: r239289
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/constexpr.c
gcc/testsuite/g++.dg/template/incomplete7.C [new file with mode: 0644]
This page took 0.06326 seconds and 5 git commands to generate.