public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/9307: ICE
@ 2003-01-14 15:03 ehrhardt
0 siblings, 0 replies; 3+ messages in thread
From: ehrhardt @ 2003-01-14 15:03 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, shrinivasa
Synopsis: ICE
State-Changed-From-To: closed->open
State-Changed-By: cae
State-Changed-When: Tue Jan 14 07:03:46 2003
State-Changed-Why:
Aaarg. Sorry. Duplicate got already closed.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9307
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c++/9307: ICE
@ 2003-01-14 15:00 ehrhardt
0 siblings, 0 replies; 3+ messages in thread
From: ehrhardt @ 2003-01-14 15:00 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, shrinivasa
Synopsis: ICE
State-Changed-From-To: open->closed
State-Changed-By: cae
State-Changed-When: Tue Jan 14 07:00:48 2003
State-Changed-Why:
Exact duplicate of 9306.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9307
^ permalink raw reply [flat|nested] 3+ messages in thread
* c++/9307: ICE
@ 2003-01-14 12:06 shrinivasa
0 siblings, 0 replies; 3+ messages in thread
From: shrinivasa @ 2003-01-14 12:06 UTC (permalink / raw)
To: gcc-gnats
>Number: 9307
>Category: c++
>Synopsis: ICE
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-legal-code
>Submitter-Id: net
>Arrival-Date: Tue Jan 14 04:06:03 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: shrinivasa@kpit.com
>Release: GCC 3.2.1. Also observed in GCC 3.2
>Organization:
>Environment:
SH-COFF.
>Description:
When attached file is compiled with -O2 -g the compiler generates ICE. Try following command.
sh-coff-g++ -S -g -O2 test_code.cpp
-------------------------------------
typedef int int32;
typedef int32 real_const_t;
class real
{
private:
int32 value;
public:
real(void) {}
real(const real & z_a) {value = z_a.value;}
friend real operator+ (real, real);
};
inline real operator+ (real z_a, real z_b)
{
real temp;
temp.value = (z_a.value) + (z_b.value);
return temp;
}
real r,r1,r2,r3;
void test (void)
{
r = r1 + r2 + r3;
}
-----------------------------------------------
>How-To-Repeat:
Compile attached file with command line
> > sh-coff-g++ -S -g -O2 test_code.cpp
>Fix:
I dont have the fix.
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="test_code.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test_code.cpp"
dHlwZWRlZiBpbnQgaW50MzI7DQp0eXBlZGVmIGludDMyIHJlYWxfY29uc3RfdDsNCg0KY2xhc3Mg
cmVhbA0Kew0KcHJpdmF0ZToNCiAgaW50MzIgdmFsdWU7DQoNCnB1YmxpYzoNCiAgcmVhbCh2b2lk
KSB7fQ0KICByZWFsKGNvbnN0IHJlYWwgJiB6X2EpIHt2YWx1ZSA9IHpfYS52YWx1ZTt9DQogIGZy
aWVuZCByZWFsIG9wZXJhdG9yKyAocmVhbCwgcmVhbCk7DQp9Ow0KDQppbmxpbmUgcmVhbCBvcGVy
YXRvcisgKHJlYWwgel9hLCByZWFsIHpfYikNCnsNCiAgcmVhbCB0ZW1wOw0KICB0ZW1wLnZhbHVl
ID0gKHpfYS52YWx1ZSkgKyAoel9iLnZhbHVlKTsNCiAgcmV0dXJuIHRlbXA7DQp9DQoNCnJlYWwg
cixyMSxyMixyMzsNCg0Kdm9pZCB0ZXN0ICh2b2lkKQ0Kew0KICAgICAgIHIgPSByMSArIHIyICsg
cjM7DQp9DQo=
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-01-14 15:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-14 15:03 c++/9307: ICE ehrhardt
-- strict thread matches above, loose matches on Subject: below --
2003-01-14 15:00 ehrhardt
2003-01-14 12:06 shrinivasa
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).