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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Sep 27 14:19:57 2017
New Revision: 253230

URL: https://gcc.gnu.org/viewcvs?rev=253230&root=gcc&view=rev
Log:
        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:
    trunk/gcc/testsuite/g++.dg/opt/pr82159.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gimplify.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to