This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/9779: [3.4 regression] ICE in type_unknown_p when casting in static member
- From: bangerth at dealii dot org
- To: bkoz at redhat dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, stefan at snon dot net
- Date: 20 Feb 2003 20:15:38 -0000
- Subject: Re: c++/9779: [3.4 regression] ICE in type_unknown_p when casting in static member
- Reply-to: bangerth at dealii dot org, bkoz at redhat dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, stefan at snon dot net, gcc-gnats at gcc dot gnu dot org
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<int> 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