public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: shrinivasa@kpit.com
To: gcc-gnats@gcc.gnu.org
Subject: c++/9306: ICE
Date: Tue, 14 Jan 2003 12:06:00 -0000	[thread overview]
Message-ID: <20030114115754.28551.qmail@sources.redhat.com> (raw)


>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:


             reply	other threads:[~2003-01-14 12:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-14 12:06 shrinivasa [this message]
2003-01-14 12:48 paolo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030114115754.28551.qmail@sources.redhat.com \
    --to=shrinivasa@kpit.com \
    --cc=gcc-gnats@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).