This is the mail archive of the gcc@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]

A -funroll-loops bug


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;
  }
}


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