public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/26199]  New: [4.2 regression] ICE in decl_ultimate_origin
@ 2006-02-09 16:37 reichelt at gcc dot gnu dot org
  2006-02-09 16:39 ` [Bug debug/26199] " pinskia at gcc dot gnu dot org
  2006-02-10  9:58 ` reichelt at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-02-09 16:37 UTC (permalink / raw)
  To: gcc-bugs

The following code snippet triggers an ICE on mainline when
compiled with "-O3 -g" (on x86_64-unknown-linux-gnu):

===========================================
struct A
{
    double x[3];
    double get() const { return x[0]; }
};

A bar2(const A& a)
{
    A a1;
    for (int i=0; i<3; ++i)
        a1.x[i]=-a.x[i];
    return a1;
}

A bar1(const A& a)
{
    A a1=bar2(a);
    return a1;
}

double foo(const A& a)
{
    return bar1(a).get();
}
===========================================

bug.cc: In function 'double foo(const A&)':
bug.cc:24: internal compiler error: in decl_ultimate_origin, at
dwarf2out.c:4744
Please submit a full bug report, [etc.]


-- 
           Summary: [4.2 regression] ICE in decl_ultimate_origin
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, monitored
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26199


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug debug/26199] [4.2 regression] ICE in decl_ultimate_origin
  2006-02-09 16:37 [Bug debug/26199] New: [4.2 regression] ICE in decl_ultimate_origin reichelt at gcc dot gnu dot org
@ 2006-02-09 16:39 ` pinskia at gcc dot gnu dot org
  2006-02-10  9:58 ` reichelt at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-09 16:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-02-09 16:39 -------
Confirmed, it worked with "4.2.0 20051217".


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-02-09 16:39:25
               date|                            |
   Target Milestone|---                         |4.2.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26199


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug debug/26199] [4.2 regression] ICE in decl_ultimate_origin
  2006-02-09 16:37 [Bug debug/26199] New: [4.2 regression] ICE in decl_ultimate_origin reichelt at gcc dot gnu dot org
  2006-02-09 16:39 ` [Bug debug/26199] " pinskia at gcc dot gnu dot org
@ 2006-02-10  9:58 ` reichelt at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-02-10  9:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from reichelt at gcc dot gnu dot org  2006-02-10 09:58 -------
I can't reproduce this anymore.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26199


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-02-10  9:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-09 16:37 [Bug debug/26199] New: [4.2 regression] ICE in decl_ultimate_origin reichelt at gcc dot gnu dot org
2006-02-09 16:39 ` [Bug debug/26199] " pinskia at gcc dot gnu dot org
2006-02-10  9:58 ` reichelt at gcc dot gnu dot org

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).