From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18809 invoked by alias); 22 Apr 2003 14:36:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 18783 invoked by uid 71); 22 Apr 2003 14:36:01 -0000 Date: Tue, 22 Apr 2003 14:36:00 -0000 Message-ID: <20030422143601.18782.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: "Giovanni Bajo" Subject: Re: middle-end/10451: (3.2.2) ICE on mutable definitions of iterators Reply-To: "Giovanni Bajo" X-SW-Source: 2003-04/txt/msg00923.txt.bz2 List-Id: The following reply was made to PR middle-end/10451; it has been noted by GNATS. From: "Giovanni Bajo" To: , , , , Cc: "Wolfgang Bangerth" Subject: Re: middle-end/10451: (3.2.2) ICE on mutable definitions of iterators Date: Tue, 22 Apr 2003 16:34:53 +0200 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&p r=10451 Reduced snippet is: ----------------------------------------- struct Bar { typedef int type; }; struct Foo { void func(void) { mutable Bar::type x; } }; ----------------------------------------- pr10451.cpp: In member function `void Foo::func()': pr10451.cpp:10: Internal compiler error in grokdeclarator, at cp/decl.c:11906 Please submit a full bug report, The code is illegal, but we should not ICE anyway. This is a 3.2/3.3/3.4 regression wrt to 2.95 which was giving a normal error message. For the original poster: your code is illegal because mutable may not be used to define local variables. Giovanni Bajo