re PR c/54552 (Cast to pointer to VLA crash the compiler)
authorJoseph Myers <joseph@codesourcery.com>
Fri, 14 Sep 2012 21:16:56 +0000 (22:16 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Fri, 14 Sep 2012 21:16:56 +0000 (22:16 +0100)
commit9f33203d01759563ee11c708ef918aa65c1b5fe5
treee2e2bde40ff1e0181abebbb3485df74d9578ddcf
parent9996a6d1b699ae3a438babd595df622c596b2c64
re PR c/54552 (Cast to pointer to VLA crash the compiler)

c:
PR c/54552
* c-typeck.c (c_cast_expr): When casting to a type requiring
C_MAYBE_CONST_EXPR to be created, pass the inner expression to
c_fully_fold first.

testsuite:
* gcc.c-torture/compile/pr54552-1.c: New test.

From-SVN: r191313
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr54552-1.c [new file with mode: 0644]