public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/4447: c++ ICE (segfault in mangle.c). Regression from 2.95.x!
@ 2001-11-09 12:56 lerdsuwa
0 siblings, 0 replies; 4+ messages in thread
From: lerdsuwa @ 2001-11-09 12:56 UTC (permalink / raw)
To: gcc-bugs, gcc-gnats, gcc-prs, jbuck, nobody
Synopsis: c++ ICE (segfault in mangle.c). Regression from 2.95.x!
State-Changed-From-To: analyzed->closed
State-Changed-By: lerdsuwa
State-Changed-When: Sat Nov 17 22:54:12 2001
State-Changed-Why:
Fixed in the main trunk.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4447&database=gcc
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: c++/4447: c++ ICE (segfault in mangle.c). Regression from 2.95.x!
@ 2001-11-09 13:16 lerdsuwa
0 siblings, 0 replies; 4+ messages in thread
From: lerdsuwa @ 2001-11-09 13:16 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/4447; it has been noted by GNATS.
From: lerdsuwa@gcc.gnu.org
To: gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org,
jbuck@synopsys.COM, nobody@gcc.gnu.org
Cc:
Subject: Re: c++/4447: c++ ICE (segfault in mangle.c). Regression from 2.95.x!
Date: 18 Nov 2001 06:54:12 -0000
Synopsis: c++ ICE (segfault in mangle.c). Regression from 2.95.x!
State-Changed-From-To: analyzed->closed
State-Changed-By: lerdsuwa
State-Changed-When: Sat Nov 17 22:54:12 2001
State-Changed-Why:
Fixed in the main trunk.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4447&database=gcc
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: c++/4447: c++ ICE (segfault in mangle.c). Regression from 2.95.x!
@ 2001-10-07 4:19 lerdsuwa
0 siblings, 0 replies; 4+ messages in thread
From: lerdsuwa @ 2001-10-07 4:19 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, jbuck, nobody
Synopsis: c++ ICE (segfault in mangle.c). Regression from 2.95.x!
State-Changed-From-To: open->analyzed
State-Changed-By: lerdsuwa
State-Changed-When: Sun Oct 7 04:19:42 2001
State-Changed-Why:
Confirm as a bug.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=4447&database=gcc
^ permalink raw reply [flat|nested] 4+ messages in thread
* c++/4447: c++ ICE (segfault in mangle.c). Regression from 2.95.x!
@ 2001-10-02 16:16 jbuck
0 siblings, 0 replies; 4+ messages in thread
From: jbuck @ 2001-10-02 16:16 UTC (permalink / raw)
To: gcc-gnats
>Number: 4447
>Category: c++
>Synopsis: c++ ICE (segfault in mangle.c). Regression from 2.95.x!
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-legal-code
>Submitter-Id: net
>Arrival-Date: Tue Oct 02 16:16:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Joe Buck
>Release: 3.0.2 20011002 (prerelease)
>Organization:
Synopsys
>Environment:
System: SunOS atrus 5.7 Generic_106541-12 sun4u sparc SUNW,Ultra-Enterprise
Architecture: sun4
host: sparc-sun-solaris2.7
build: sparc-sun-solaris2.7
target: sparc-sun-solaris2.7
configured with: ../gcc/configure --prefix=/u/jbuck/gcc-cvs
>Description:
With the attached code, gcc gets an internal compiler error.
The immediate cause is that a null pointer is passed to strlen.
The cc1plus stack trace is
#0 0xff2b6dec in strlen ()
#1 0xc6734 in write_expression (expr=0x3c2570)
at ../../gcc/gcc/cp/mangle.c:1818
#2 0xc67b4 in write_expression (expr=0x3c259c)
at ../../gcc/gcc/cp/mangle.c:1831
#3 0xc6ff4 in write_template_arg (node=0x3c2588)
at ../../gcc/gcc/cp/mangle.c:1941
#4 0xc6624 in write_template_args (args=0x3c2614)
at ../../gcc/gcc/cp/mangle.c:1740
#5 0xc4458 in write_name (decl=0x3c0af8, ignore_local_scope=0)
at ../../gcc/gcc/cp/mangle.c:712
#6 0xc5848 in write_type (type=0x3c0a28) at ../../gcc/gcc/cp/mangle.c:1393
#7 0xc6440 in write_bare_function_type (type=0x3c0ea0,
include_return_type_p=1, decl=0x3c7cd8) at ../../gcc/gcc/cp/mangle.c:1632
#8 0xc4320 in write_encoding (decl=0x3c7cd8) at ../../gcc/gcc/cp/mangle.c:657
#9 0xc7688 in mangle_decl_string (decl=0x3c7cd8)
at ../../gcc/gcc/cp/mangle.c:623
#10 0xc7940 in mangle_decl (decl=0x3c7cd8) at ../../gcc/gcc/cp/mangle.c:2200
>How-To-Repeat:
This simplified example is based on code for efficient fixed-point
arithmetic. To get the crash, do
gcc -c crash.ii
where crash.ii is
-------------------------------
template<bool B,int I>
class T {
public:
T(int);
};
template<bool B1,bool B2,int I1,int I2>
T<(B1&&B2),I1+I2-int(B1&&B2)>
func(T<B1,I1> a, T<B2,I2> b) {
return T<(B1&&B2),I1+I2-int(B1&&B2)> (I1+I2);
}
void foo(T<true,3> a, T<true,4>b) {
func(a, b);
}
-------------------------------
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-11-18 6:56 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-09 12:56 c++/4447: c++ ICE (segfault in mangle.c). Regression from 2.95.x! lerdsuwa
-- strict thread matches above, loose matches on Subject: below --
2001-11-09 13:16 lerdsuwa
2001-10-07 4:19 lerdsuwa
2001-10-02 16:16 jbuck
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).