[Bug c++/65202] [5 Regression] ICE segfault with constexpr/noexcept

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Feb 26 16:03:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65202

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Thu Feb 26 15:03:23 2015
New Revision: 221015

URL: https://gcc.gnu.org/viewcvs?rev=221015&root=gcc&view=rev
Log:
    PR c++/65202
    * constexpr.c (cxx_eval_constant_expression): Don't evaluate
    a RETURN_EXPR if its operand is null.

    * g++.dg/cpp1y/pr65202.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/pr65202.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/constexpr.c
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-bugs mailing list