------- Comment #2 from jakub at gcc dot gnu dot org  2009-01-01 19:41 -------
Subject: Bug 36489

Author: jakub
Date: Thu Jan  1 19:40:03 2009
New Revision: 142998

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142998
Log:
        PR c/36489
        * c-typeck.c (add_pending_init): Add IMPLICIT argument.  Only
        warn about overwriting initializer with side-effects or
        -Woverride-init if !IMPLICIT.
        (output_init_element): Likewise.  Pass IMPLICIT down to
        add_pending_init.
        (process_init_element): Add IMPLICIT argument.  Pass it down
        to output_init_element.
        (push_init_element, pop_init_level, set_designator): Adjust
        process_init_element callers.
        (set_nonincremental_init, set_nonincremental_init_from_string):
        Adjust add_pending_init callers.
        (output_pending_init_elements): Adjust output_init_element callers.
        * c-tree.h (process_init_element): Adjust prototype.
        * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
        process_init_element callers.

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

Added:
    trunk/gcc/testsuite/gcc.dg/pr36489.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-parser.c
    trunk/gcc/c-tree.h
    trunk/gcc/c-typeck.c
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36489

Reply via email to