From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19348 invoked by alias); 14 Feb 2003 22:01:55 -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 19327 invoked by uid 48); 14 Feb 2003 22:01:55 -0000 Date: Fri, 14 Feb 2003 22:01:00 -0000 Message-ID: <20030214220155.19326.qmail@sources.redhat.com> To: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, jkanze@caicheuvreux.com, nobody@gcc.gnu.org From: bangerth@dealii.org Reply-To: bangerth@dealii.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, jkanze@caicheuvreux.com, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: c++/9708: Core dump from compiler X-SW-Source: 2003-02/txt/msg00638.txt.bz2 List-Id: Synopsis: Core dump from compiler State-Changed-From-To: open->analyzed State-Changed-By: bangerth State-Changed-When: Fri Feb 14 22:01:55 2003 State-Changed-Why: Reduced, this code looks like this: --------------------------- template char* begin(char (&a) [N] ); template unsigned int size(char (&) [N] ); void foo(char *); void bar() { char s[] = { 'a', 'b', 'c' } ; char d[ size( s ) ] ; foo(begin(d)) ; } ---------------------------- This ICEs all compilers since at least 2.95. 3.4 presently gives this message: tmp/g> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c y.cc y.cc: In function `char* begin(char (&)[N])': y.cc:2: error: variable-size type declared outside of any function y.cc: In function `void bar()': y.cc:13: internal compiler error: Segmentation fault http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9708