This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/12391] [3.4 regression] missing warning about assigning to an incomplete type


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-19 05:59 -------
The regresion happened between 20030830 and 20030902.
I want to say it was caused by: <http://gcc.gnu.org/ml/gcc-patches/2003-09/msg00003.html>
Or one of these two:
2003-08-30  Zack Weinberg  <zack@codesourcery.com>

        * c-tree.h: Delete COMPARE_DIFFERENT_TU from enumeration.
        * c-typeck.c (same_translation_unit_p): New function.
        (comptypes): Use it instead of flags parameter to identify
        structure types from different translation units.
        * c-decl.c (duplicate_decls): Always call comptypes with
        COMPTYPE_STRICT flags argument.
        (c_reset_state): Set BLOCK_SUPERCONTEXT of the block formed
        to file_scope_decl.

2003-08-30  Zack Weinberg  <zack@codesourcery.com>

        * c-tree.h (C_TYPE_INCOMPLETE_VARS): New macro.
        * c-decl.c (struct c_scope): Remove "incomplete" field.
        (pushdecl): Attach variables with incomplete types to
        the TYPE_MAIN_VARIANT of the incomplete type in question.
        (finish_struct): Look at C_TYPE_INCOMPLETE_VARS for variables
        to complete, not at current_scope->incomplete.  All such
        variables do need completion.

These are the only patches which touched the c front-end which could cause this problem.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |zack at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]