Thread View: gnu.gcc.bug
1 messages
1 total messages
Started by Bas V. de Bakker
Wed, 10 Jan 1996 00:00
Correct program dumps core
Author: Bas V. de Bakker
Date: Wed, 10 Jan 1996 00:00
Date: Wed, 10 Jan 1996 00:00
34 lines
1113 bytes
1113 bytes
GCC version:
Reading specs from /usr/local/lib/gcc/lib/gcc-lib/rs6000-ibm-aix3.2.5/2.7.2/specs
gcc version 2.7.2
Machine: IBM RS6000 running AIX 3.2.5
Problem:
% gcc -o bug bug.i
% ./bug
zsh: segmentation fault (core dumped) ./bug
where as far as I can see bug.i (reproduced below) is correct and
should not get a SEGV. In fact, it does not do so with either IBM xlc
or gcc 2.5.8.
Regards,
Bas de Bakker
------------------------------------------------------------------------
# 1 "bug.c"
int main(int argc, char** argv)
{
int i = 0;
double dummy;
double array[4096];
array[0] = (double)i;
for (i = 0; i < 2; i++)
dummy = (double)i;
return 0;
}
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads