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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Sat Sep 30 08:25:02 2017
New Revision: 253318

URL: https://gcc.gnu.org/viewcvs?rev=253318&root=gcc&view=rev
Log:
        Backported from mainline
        2017-09-27  Jakub Jelinek  <ja...@redhat.com>

        PR c++/82159
        * gimplify.c (gimplify_modify_expr): Don't optimize away zero sized
        lhs from calls if the lhs has addressable type.

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

Added:
    branches/gcc-7-branch/gcc/testsuite/g++.dg/opt/pr82159.C
Modified:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/gimplify.c
    branches/gcc-7-branch/gcc/testsuite/ChangeLog

Reply via email to