A -funroll-loops bug

H.J. Lu hjl@lucon.org
Fri Oct 31 16:50:00 GMT 1997


On linux/x86, I got

# gcc -S -g -O -funroll-loops foo.cc
foo.cc: In function `void splittest()':
foo.cc:16: Internal compiler error.
foo.cc:16: Please submit a full bug report to `egcs-bugs@cygnus.com'.

If I take out -g or -funroll-loops, it compiles ok.

-- 
H.J. Lu (hjl@gnu.ai.mit.edu)
---foo.cc--
class String
{
public:
                    String();
                    ~String();
  int               OK() const;
};
void splittest()
{
  String w[10];
  for (int i = 0; i < 5; ++i)
  {
    if (!w[i].OK())
      return;
  }
}



More information about the Gcc mailing list