Segmentation fault
Slon
slon@coig.katowice.pl
Wed Sep 12 00:43:00 GMT 2001
GCC 3.0 on HP-UX system.
uname -a returning:
HP-UX zetoproj B.11.00 A 9000/813 2013518138 two-user license
Command and error:
$ gcc /tmp/zzz.c
/tmp/zzz.c: In function `dumb':
/tmp/zzz.c:9: Internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.
Source file /tmp/zzz.c:
#include<stdio.h>
int dumb ( void )
{ char * tab[] = {"ala", "ma", "kota"};
struct { char * (* ptrtotab)[];
char * something;
} array[] = {{NULL,"costam"},{NULL}};
array[0].ptrtotab=&tab;
}
void main ( int argc )
{
}
Sorry, I have no other required information becouse
I have no access to this server now ( it is customer
machine 700 km away from me ). I have no time to
prepare what you need too. I lost too much when
I changing my sources to compile with gcc !
--
Pozdrowienia ... Slon
PS: Accepting assignments like this:
{ char * string = "character array";
with non-default '-fwritable-strings' option
without warning/error is very stupid logic !!!
More information about the Gcc-bugs
mailing list