A recent build (4.2.0 20060413) ICEs when compiling this:

#include <iostream.h>

class bar {
public:
        float e[1];
};

istream &operator>>(istream &is, bar &t)
{
        is >> t.e[1];
        return is;
}

with the following options:

g++ -c -fipa-pta fail1.cc

The error is:

fail1.cc:15: internal compiler error: in collapse_rest_of_var, at
tree-ssa-structalias.c:2820


-- 
           Summary: ICE when using -fipa-pta
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: anton at samba dot org
GCC target triplet: powerpc64-linux


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

Reply via email to