From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24125 invoked by alias); 19 Dec 2003 06:00:29 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 24007 invoked by uid 48); 19 Dec 2003 06:00:15 -0000 Date: Fri, 19 Dec 2003 06:37:00 -0000 Message-ID: <20031219060015.24006.qmail@sources.redhat.com> From: "pinskia at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20030924141618.12391.levon@movementarian.org> References: <20030924141618.12391.levon@movementarian.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c/12391] [3.4 regression] missing warning about assigning to an incomplete type X-Bugzilla-Reason: CC X-SW-Source: 2003-12/txt/msg02001.txt.bz2 List-Id: ------- 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: Or one of these two: 2003-08-30 Zack Weinberg * 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 * 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