public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/9306: ICE
@ 2003-01-14 12:06 shrinivasa
0 siblings, 0 replies; 2+ messages in thread
From: shrinivasa @ 2003-01-14 12:06 UTC (permalink / raw)
To: gcc-gnats
>Number: 9306
>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:01 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:
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: c++/9306: ICE
@ 2003-01-14 12:48 paolo
0 siblings, 0 replies; 2+ messages in thread
From: paolo @ 2003-01-14 12:48 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, shrinivasa
Synopsis: ICE
State-Changed-From-To: open->closed
State-Changed-By: paolo
State-Changed-When: Tue Jan 14 04:48:05 2003
State-Changed-Why:
Duplicate, missing the attachment, of c++/9307.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9306
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-01-14 12:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-14 12:06 c++/9306: ICE shrinivasa
2003-01-14 12:48 paolo
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).