re PR middle-end/64766 (internal compiler error: tree check: expected block, have...
authorJakub Jelinek <jakub@redhat.com>
Tue, 27 Jan 2015 08:13:45 +0000 (09:13 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 27 Jan 2015 08:13:45 +0000 (09:13 +0100)
commitdea63e49fa986d91885d192fae0a5c19fea77aa1
tree8a5af59a4c3bbf800b96c9c554c9a84993e91a97
parent1230f784cfacdc877d711e335fdded154263b5fb
re PR middle-end/64766 (internal compiler error: tree check: expected block, have error_mark in lower_function_body, at gimple-low.c:122)

PR c/64766
* c-typeck.c (store_init_value): Don't overwrite DECL_INITIAL
of FUNCTION_DECLs with error_mark_node.

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

From-SVN: r220152
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr64766.c [new file with mode: 0644]