This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/17483] New: [4.0 regression] ICE at -O3 when passing a reference.


Compiling the following valid code snippet (inspired by PR6189)
on mainline with -O3 yields an ICE:

===================================
struct A
{
    int i;
    int& ref() { return i; }
};

A foo()
{
    A a;
    a.ref()=0;
    return a;
}

void bar()
{
    foo();
}
===================================


bug.cc: In function `void bar()':
bug.cc:15: error: address taken, but ADDRESSABLE bit not set
D.1590

bug.cc:15: internal compiler error: verify_stmts failed.
Please submit a full bug report, [etc.]

The regression was introduced 2004-09-13 or 2004-09-14.

-- 
           Summary: [4.0 regression] ICE at -O3 when passing a reference.
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, monitored
          Severity: critical
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]