gcc bug - signal 6

John Newbigin jn@uranus.it.swin.edu.au
Wed Nov 11 01:40:00 GMT 1998


I hope this is the correct place to send this.

While compiling ssh 1.2.21 I came across a reproducable bug.
I am using gcc 2.7.2.2, a standard Slackware installation.

This is the line of code which causes the problem.

a = 1 / (a > 0);

where a is an integer. ie:

bug.c:
int main()
{
	int a;
	a = 1 / (a > 0);
}

$ gcc -c bug.c
gcc: Internal compiler error: program cc1 got fatal signal 6

I don't know if this is known, but I could not find it anyware.  I don't
know if it exists in later versions either.

John.

--
Unix is user friendly.  It is just selective about who it's friends are.






More information about the Gcc-bugs mailing list