re PR middle-end/49640 (Internal compiler in C99 code (using variable-length arrays...
authorJakub Jelinek <jakub@redhat.com>
Thu, 7 Jul 2011 12:49:17 +0000 (14:49 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 7 Jul 2011 12:49:17 +0000 (14:49 +0200)
commit19c44640ebdf27fd4f6a073af4141f2a37283b9b
tree9739022e90d795baad3ede5dfb7cb3073a4d932d
parent4054bc52d6c353aceeb7a9312347c2c98e837783
re PR middle-end/49640 (Internal compiler in C99 code (using variable-length arrays) and OpenMP)

PR middle-end/49640
* gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF
operands and last COMPONENT_REF operand call gimplify_expr on it
if non-NULL.

* gcc.dg/gomp/pr49640.c: New test.

From-SVN: r175967
gcc/ChangeLog
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/gomp/pr49640.c [new file with mode: 0644]