https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64766
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Sun Feb 1 17:36:26 2015 New Revision: 220327 URL: https://gcc.gnu.org/viewcvs?rev=220327&root=gcc&view=rev Log: Backported from mainline 2015-01-27 Jakub Jelinek <ja...@redhat.com> 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. Added: branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/pr64766.c Modified: branches/gcc-4_9-branch/gcc/c/ChangeLog branches/gcc-4_9-branch/gcc/c/c-typeck.c branches/gcc-4_9-branch/gcc/testsuite/ChangeLog