public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/9779: [3.4 regression] ICE in type_unknown_p when casting in static member
@ 2003-02-20 20:15 bangerth
0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2003-02-20 20:15 UTC (permalink / raw)
To: bkoz, gcc-bugs, gcc-prs, nobody, stefan
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: c++/9779: [3.4 regression] ICE in type_unknown_p when casting in static member
@ 2003-02-20 20:56 Steven Bosscher
0 siblings, 0 replies; 2+ messages in thread
From: Steven Bosscher @ 2003-02-20 20:56 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/9779; it has been noted by GNATS.
From: Steven Bosscher <s.bosscher@student.tudelft.nl>
To: bkoz@redhat.com, gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org,
nobody@gcc.gnu.org, gcc-prs@gcc.gnu.org, stefan@snon.net
Cc:
Subject: Re: c++/9779: [3.4 regression] ICE in type_unknown_p when casting
in static member
Date: Thu, 20 Feb 2003 21:51:23 +0100
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9779
devphil says:
: Search converges between 2002-12-27-trunk (#85) and 2002-12-28-trunk
(#86).
Line-numbered input is:
========================================
1 void *malloc(unsigned int size);
2 template<int> void foo() {
3 malloc (sizeof (int));
4 }
5 template void foo<1>();
6
========================================
Diagnostic output follows, from the last compiler tested:
input: In function `void foo()':
input:3: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
Compiler output follows, from the last compiler tested:
.file "input"
So, 99% sure that this is caused by the new parser.
Greetz
Steven
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-02-20 20:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-20 20:15 c++/9779: [3.4 regression] ICE in type_unknown_p when casting in static member bangerth
2003-02-20 20:56 Steven Bosscher
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).