This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
A -funroll-loops bug
- To: egcs at cygnus dot com
- Subject: A -funroll-loops bug
- From: hjl at lucon dot org (H.J. Lu)
- Date: Fri, 31 Oct 1997 16:50:45 +1600 (PST)
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;
}
}