From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22839 invoked by alias); 9 Aug 2005 22:02:09 -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 22746 invoked by uid 48); 9 Aug 2005 22:01:58 -0000 Date: Tue, 09 Aug 2005 22:02:00 -0000 Message-ID: <20050809220158.22744.qmail@sourceware.org> From: "reichelt at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050326072747.20646.dan.rosen@gmail.com> References: <20050326072747.20646.dan.rosen@gmail.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/20646] [4.0/4.1 Regression] ICE on illegal code: "extern static" struct member X-Bugzilla-Reason: CC X-SW-Source: 2005-08/txt/msg01021.txt.bz2 List-Id: ------- Additional Comments From reichelt at gcc dot gnu dot org 2005-08-09 22:01 ------- Mark, are you still working on this one? Btw, the following patch fixes the ICE for me. Passed bootstrap and regtests. =================================================================== --- gcc/gcc/cp/decl.c 1 Aug 2005 04:02:24 -0000 1.1416 +++ gcc/gcc/cp/decl.c 9 Aug 2005 13:10:55 -0000 @@ -7064,7 +7064,10 @@ grokdeclarator (const cp_declarator *dec /* Warn about storage classes that are invalid for certain kinds of declarations (parameters, typenames, etc.). */ if (declspecs->multiple_storage_classes_p) - error ("multiple storage classes in declaration of %qs", name); + { + error ("multiple storage classes in declaration of %qs", name); + storage_class = sc_none; + } else if (thread_p && ((storage_class && storage_class != sc_extern =================================================================== -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20646