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

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Sat Mar  3 13:32:26 2018
New Revision: 258192

URL: https://gcc.gnu.org/viewcvs?rev=258192&root=gcc&view=rev
Log:
        Backported from mainline
        2018-02-16  Marek Polacek  <pola...@redhat.com>
                    Jakub Jelinek  <ja...@redhat.com>

        PR c++/84192
        * constexpr.c (cxx_eval_constant_expression) <case RETURN_EXPR>: Don't
        set *jump_target to anything if jump_target is NULL.

        * g++.dg/cpp1y/constexpr-84192.C: New test.

Added:
    branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp1y/constexpr-84192.C
Modified:
    branches/gcc-7-branch/gcc/cp/ChangeLog
    branches/gcc-7-branch/gcc/cp/constexpr.c
    branches/gcc-7-branch/gcc/testsuite/ChangeLog

Reply via email to