[Bug c++/84558] [6/7 Regression] ICE with invalid constexpr constructor

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Mar 3 13:41:00 GMT 2018


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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Sat Mar  3 13:41:20 2018
New Revision: 258205

URL: https://gcc.gnu.org/viewcvs?rev=258205&root=gcc&view=rev
Log:
        Backported from mainline
        2018-02-26  Jakub Jelinek  <jakub@redhat.com>

        PR c++/84558
        * constexpr.c (cxx_eval_vec_init_1): For reuse, treat NULL eltinit like
        a valid constant initializer.  Formatting fixes.

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

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


More information about the Gcc-bugs mailing list