[Bug c/77767] [5 Regression] Side-effect from VLA array parameters lost

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue May 30 07:54:00 GMT 2017


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

--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue May 30 07:51:58 2017
New Revision: 248635

URL: https://gcc.gnu.org/viewcvs?rev=248635&root=gcc&view=rev
Log:
        Backported from mainline
        2016-12-21  Jakub Jelinek  <jakub@redhat.com>

        PR c/77767
        * c-decl.c (grokdeclarator): If *expr is non-NULL, append expression
        to *expr instead of overwriting it.

        * gcc.c-torture/execute/pr77767.c: New test.

Added:
    branches/gcc-5-branch/gcc/testsuite/gcc.c-torture/execute/pr77767.c
Modified:
    branches/gcc-5-branch/gcc/c/ChangeLog
    branches/gcc-5-branch/gcc/c/c-decl.c
    branches/gcc-5-branch/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list