From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31645 invoked by alias); 21 Jul 2005 15:12:43 -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 31609 invoked by uid 48); 21 Jul 2005 15:12:37 -0000 Date: Thu, 21 Jul 2005 15:15:00 -0000 Message-ID: <20050721151237.31607.qmail@sourceware.org> From: "reichelt at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040611122359.15938.reichelt@gcc.gnu.org> References: <20040611122359.15938.reichelt@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/15938] ICE with anonymous unions X-Bugzilla-Reason: CC X-SW-Source: 2005-07/txt/msg02569.txt.bz2 List-Id: ------- Additional Comments From reichelt at gcc dot gnu dot org 2005-07-21 15:12 ------- The ICE is fixed now. But maybe some additional code cleanup is needed: Giovanni, what about the following code snippet from typeck2.c? Is the comment still valid? What about the error message, is it still triggered in some cases? /* Find the first named field. ANSI decided in September 1990 that only named fields count here. */ tree field = TYPE_FIELDS (type); while (field && (!DECL_NAME (field) || TREE_CODE (field) != FIELD_DECL)) field = TREE_CHAIN (field); if (!field) { error ("union %qT with no named members cannot be initialized", type); ce->value = error_mark_node; } ce->index = field; -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15938