> cat bug.ii
struct vector {
int *start, *finish;
unsigned long size() { return finish - start; }
};
void f(vector& v) {
for (unsigned i = 0; i < v.size(); ++i);
}
> g++ -O2 -fsee bug.ii
bug.ii: In function void f(vector&):
bug.ii:7: internal compiler error: Segmentation fault
This started failing in the last couple of days.
I'm compiling on linux_x86_64.
--
Summary: ICE with -O2 -fsee
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: wouter dot vermaelen at scarlet dot be
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32300