From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20564 invoked by alias); 22 Feb 2002 07:16:08 -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 20502 invoked by uid 71); 22 Feb 2002 07:16:03 -0000 Date: Fri, 22 Feb 2002 02:30:00 -0000 Message-ID: <20020222071603.20499.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: tHE rEAL uSER Subject: Re: c++/5749: Internal compiler error Reply-To: tHE rEAL uSER X-SW-Source: 2002-02/txt/msg00559.txt.bz2 List-Id: The following reply was made to PR c++/5749; it has been noted by GNATS. From: tHE rEAL uSER To: gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, metaf4@pseudonym.org, gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org Cc: Subject: Re: c++/5749: Internal compiler error Date: Fri, 22 Feb 2002 09:13:54 +0100 Hello Maintainers ! =================== > Synopsis: Internal compiler error > > State-Changed-From-To: open->feedback > State-Changed-By: rodrigc > State-Changed-When: Thu Feb 21 20:39:02 2002 > State-Changed-Why: > > http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5749 Currently I can't update my compiler to figured out what's wrong. c++ 2.95.2 did not give me any warnings or hints. (c++ cpp_ptr.cpp -Wall -W -Wtraditional -pedantic -ansi -Wbad-function-cast) Perhaps can fix the code with braces like that, but I don't believe in: void (ZClass::*xxptr[3])() = { (&ZClass::draw1), (&ZClass::draw2), 0 }; Can you submit your compiler options ? There is a new interesting fact in the main function: the problem seems to be in the index. All numbers greater or equal than 3 crashes the compiler, except we have one or zero argument. int main(){ // *** this abort my compiler // void (ZClass::*xxptr[3])() = { &ZClass::draw1, &ZClass::draw2, 0 }; // void (ZClass::*xxptr[3])() = { &ZClass::draw1 }; // void (ZClass::*xxptr[4])() = { &ZClass::draw1 }; // void (ZClass::*xxptr[5])() = { &ZClass::draw1 }; // void (ZClass::*xxptr[6])() = { &ZClass::draw1 }; // void (ZClass::*xxptr[16])() = { &ZClass::draw1 }; // void (ZClass::*xxptr[10])() = { &ZClass::draw1 }; // but this works // void (ZClass::*xxptr[2])() = { &ZClass::draw2, 0 }; // void (ZClass::*xxptr[3])() = { 0 }; return 0; } Thomas Graf