]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c/54552 (Cast to pointer to VLA crash the compiler)
authorJoseph Myers <joseph@codesourcery.com>
Sat, 15 Sep 2012 00:29:28 +0000 (01:29 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Sat, 15 Sep 2012 00:29:28 +0000 (01:29 +0100)
commit6f94de3705f5c9d76aa8b20ff5e4408380b956ff
tree93d914e2fcf5ce598e146179267d3ad514fb8414
parent657c5a7209689f916fd040b6bfb5aa67c34af241
re PR c/54552 (Cast to pointer to VLA crash the compiler)

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: r191337
gcc/ChangeLog
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr54552-1.c [new file with mode: 0644]