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/16318] New: [3.5 regression] ICE with pointer-to-member-functions


Richard, here's some fall-out from your tree-sra rewrite
  http://gcc.gnu.org/ml/gcc-cvs/2004-06/msg01253.html
The following code snippet crashes mainline when compiled with optimization:

============================================
struct A
{
    void (A::*p)();
    void foo() const { (A().*p)(); }
};

inline A makeA() { return A(); }

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

The error message is:

bug.cc: In function `void bar()':
bug.cc:10: internal compiler error: in generate_element_copy, at tree-sra.c:1461
Please submit a full bug report, [etc.]

-- 
           Summary: [3.5 regression] ICE with pointer-to-member-functions
           Product: gcc
           Version: 3.5.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,rth at gcc dot gnu dot
                    org


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


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