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

Reply via email to