re PR c/52880 (-Woverride-init emitts unexpected error)
authorJakub Jelinek <jakub@redhat.com>
Wed, 25 Apr 2012 09:14:02 +0000 (11:14 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 25 Apr 2012 09:14:02 +0000 (11:14 +0200)
commitfdce1719a552ed44439cea61e795f67e82d446e8
tree53b045f8ea0328ba2b9da03679a870ab82270087
parent32397f22f0adc823b4df39b3381424ba7855828f
re PR c/52880 (-Woverride-init emitts unexpected error)

PR c/52880
* c-typeck.c (set_nonincremental_init,
set_nonincremental_init_from_string): Pass true instead of false
as IMPLICIT to add_pending_init.

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

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