re PR c/77767 (Side-effect from VLA array parameters lost)
authorJakub Jelinek <jakub@redhat.com>
Wed, 21 Dec 2016 00:07:49 +0000 (01:07 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 21 Dec 2016 00:07:49 +0000 (01:07 +0100)
commitd17680f342ef5407303d8c76f8faa0762f83c3f7
tree8268dce1899e5e9d07f7988bac438a8b1a05e923
parenta388bdc777f582514f8e8bd94274d920d700782f
re PR c/77767 (Side-effect from VLA array parameters lost)

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.

From-SVN: r243832
gcc/c/ChangeLog
gcc/c/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr77767.c [new file with mode: 0644]