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

--- Comment #10 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-8 branch has been updated by Jakub Jelinek
<ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:d8e2170ab33ebd819b8848e43264dc836e344b6b

commit r8-10871-gd8e2170ab33ebd819b8848e43264dc836e344b6b
Author: Jakub Jelinek <ja...@redhat.com>
Date:   Tue Dec 22 00:01:34 2020 +0100

    gimplify: Gimplify value in gimplify_init_ctor_eval_range [PR98353]

    gimplify_init_ctor_eval_range wasn't gimplifying value, so if it wasn't
    a gimple val, verification at the end of gimplification would ICE (or with
    release checking some random pass later on would ICE or misbehave).

    2020-12-21  Jakub Jelinek  <ja...@redhat.com>

            PR c++/98353
            * gimplify.c (gimplify_init_ctor_eval_range): Gimplify value before
            storing it into cref.

            * g++.dg/opt/pr98353.C: New test.

    (cherry picked from commit f3113a85f098df8165624321cc85d20219fb2ada)

Reply via email to