From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13178 invoked by alias); 18 Feb 2003 22:14:53 -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 13159 invoked by uid 48); 18 Feb 2003 22:14:52 -0000 Date: Tue, 18 Feb 2003 22:14:00 -0000 Message-ID: <20030218221452.13158.qmail@sources.redhat.com> To: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, liberti@ipnos.co.uk, nobody@gcc.gnu.org From: bangerth@dealii.org Reply-To: bangerth@dealii.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, liberti@ipnos.co.uk, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: c++/9749: [3.2/3.3/3.4 regression] ICE in write_expression on invalid function prototype X-SW-Source: 2003-02/txt/msg00859.txt.bz2 List-Id: Old Synopsis: internal error and segmentation fault of gcc 3.2 New Synopsis: [3.2/3.3/3.4 regression] ICE in write_expression on invalid function prototype State-Changed-From-To: open->analyzed State-Changed-By: bangerth State-Changed-When: Tue Feb 18 22:14:52 2003 State-Changed-Why: Confirmed. A regression in the C++ front end introduced between 2.95 and 3.0 that is still there in mainline of yesterday, as well as (of course) in 3.2.2 and 3.3. Reduced code is ---------------------- void foo(double a[][2]); void bar() { int nx = 2; void foo(double a[][nx]); foo(0); } ----------------------------- tmp/g> /home/bangerth/bin/gcc-3.4-pre/bin/gcc -c x.cc x.cc: In function `void bar()': x.cc:6: internal compiler error: Segmentation fault Please submit a full bug report, It ICEs here: #0 0x4009db33 in strlen () from /lib/libc.so.6 #1 0x08146004 in write_expression (expr=0x0) at ../../gcc-3.4-CVS/gcc/cp/mangle.c:1985 #2 0x08147016 in write_array_type (type=0x401c2804) at ../../gcc-3.4-CVS/gcc/cp/mangle.c:2185 #3 0x0814501d in write_type (type=0x401c2804) at ../../gcc-3.4-CVS/gcc/cp/mangle.c:1405 #4 0x08144f28 in write_type (type=0x401c2804) at ../../gcc-3.4-CVS/gcc/cp/mangle.c:1400 W. http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9749