From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5261 invoked by alias); 20 Feb 2003 20:15:41 -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 5186 invoked by uid 48); 20 Feb 2003 20:15:39 -0000 Date: Thu, 20 Feb 2003 20:15:00 -0000 Message-ID: <20030220201538.5164.qmail@sources.redhat.com> To: bkoz@redhat.com, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, stefan@snon.net From: bangerth@dealii.org Reply-To: bangerth@dealii.org, bkoz@redhat.com, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, stefan@snon.net, gcc-gnats@gcc.gnu.org Subject: Re: c++/9779: [3.4 regression] ICE in type_unknown_p when casting in static member X-SW-Source: 2003-02/txt/msg01031.txt.bz2 List-Id: Old Synopsis: ICE when casting in static member New Synopsis: [3.4 regression] ICE in type_unknown_p when casting in static member State-Changed-From-To: open->analyzed State-Changed-By: bangerth State-Changed-When: Thu Feb 20 20:15:38 2003 State-Changed-Why: Confirmed. Here's a smaller snippit: ------------------- void *malloc(unsigned int size); template void foo() { malloc (sizeof (int)); } template void foo<1>(); -------------------------- g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c x.cc x.cc: In function `void foo()': x.cc:5: internal compiler error: Segmentation fault This ICEs present mainline, and the regression was introduced between 2002-12-25 and 2003-01-05, i.e. possibly with the new parser. 3.3 is ok. A backtrace shows this: #0 0x08104253 in type_unknown_p (exp=0x4017bf30) at ../../gcc-3.4-CVS/gcc/cp/typeck.c:191 #1 0xbfffeac8 in ?? () #2 0x080e039e in arg_assoc (k=0xbfffeb20, n=0x4018b884) at ../../gcc-3.4-CVS/gcc/cp/decl2.c:4001 #3 0x080e0325 in arg_assoc_args (k=0xbfffeb20, args=0x4018b884) at ../../gcc-3.4-CVS/gcc/cp/decl2.c:3985 #4 0x080e0826 in lookup_arg_dependent (name=0x4015b580, fns=0x401902f4, args=0x0) at ../../gcc-3.4-CVS/gcc/cp/decl2.c:4089 #5 0x080f2825 in cp_parser_postfix_expression (parser=0x40192080, address_p=false) at ../../gcc-3.4-CVS/gcc/cp/parser.c:3948 From there I don't know further, of course. W. http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9779