From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10816 invoked by alias); 17 Mar 2005 16:25:51 -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 10449 invoked by alias); 17 Mar 2005 16:25:13 -0000 Date: Thu, 17 Mar 2005 16:25:00 -0000 Message-ID: <20050317162513.10448.qmail@sourceware.org> From: "joseph at codesourcery dot com" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050317143716.20519.rth@gcc.gnu.org> References: <20050317143716.20519.rth@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c/20519] [4.0/4.1 regression] completed type not selected properly with typeof X-Bugzilla-Reason: CC X-SW-Source: 2005-03/txt/msg02120.txt.bz2 List-Id: ------- Additional Comments From joseph at codesourcery dot com 2005-03-17 16:25 ------- Subject: Re: [4.0/4.1 regression] completed type not selected properly with typeof On Thu, 17 Mar 2005, rth at gcc dot gnu dot org wrote: > Array dimension data gets stripped here: > > c-decl.c:grokdeclarator > 3863 if (!flag_gen_aux_info && (TYPE_QUALS (element_type))) > 3864 type = TYPE_MAIN_VARIANT (type); Looks like complete_array_type is broken in that it should complete the unqualified type then build the array of qualified type with the proper TYPE_MAIN_VARIANT. Because my audit was auditing all uses of build_array_type and TYPE_MAIN_VARIANT and complete_array_type is modifying types directly, this didn't get caught. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20519