[Bug c++/80294] [5/6 Regression] ICE with constexpr and inheritance
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Sep 18 18:34:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80294
--- Comment #20 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Mon Sep 18 18:34:10 2017
New Revision: 252940
URL: https://gcc.gnu.org/viewcvs?rev=252940&root=gcc&view=rev
Log:
PR c++/80294 - ICE with constexpr and inheritance.
* constexpr.c (reduced_constant_expression_p):
A null constructor element is non-constant.
(cxx_eval_indirect_ref): Don't VERIFY_CONSTANT before
returning an empty base.
Added:
branches/gcc-5-branch/gcc/testsuite/g++.dg/cpp1y/constexpr-empty3.C
Modified:
branches/gcc-5-branch/gcc/cp/ChangeLog
branches/gcc-5-branch/gcc/cp/constexpr.c
More information about the Gcc-bugs
mailing list