re PR c/88701 (Internal compiler error for valid program using compound literal with...
authorJakub Jelinek <jakub@redhat.com>
Mon, 7 Jan 2019 22:55:48 +0000 (23:55 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 7 Jan 2019 22:55:48 +0000 (23:55 +0100)
commitc4581bbfb4a20bce2fb9d9dace1f30e4d5a494e8
tree811169e27ff0b6859fe311ad5efb35c4b677067e
parent2d8d93c783dd43769075fa0474d670f6fb4a85f1
re PR c/88701 (Internal compiler error for valid program using compound literal with variably modified type.)

PR c/88701
* c-decl.c (build_compound_literal): If not TREE_STATIC, only pushdecl
if current_function_decl is non-NULL.

* gcc.dg/pr88701.c: New test.

From-SVN: r267667
gcc/c/ChangeLog
gcc/c/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr88701.c [new file with mode: 0644]