compiler error in 'assign_stack_temp_for_type' at function.c :937
Czamai, Martin
M.Czamai@peak-system.com
Sun Feb 6 06:37:00 GMT 2000
Dear Lady / Sir,
the follwing code returns an internal compiler error in
'assign_stack_temp_for_type' at function.c :937 when compiling with gcc -g
-c test.cc -o test.o .
#include <stdio.h> // NULL
#define BYTE unsigned char
typedef struct _TestStruct
{ BYTE LEN;
char* NAME;
}TestStruct, *pTestStruct;
void main(void)
{ pTestStruct MyStruct[536870912]={NULL}; // 2^29=536870912 pointers
initialized with NULL-Pointer
}
The problem is, that I need this huge number of pointers.
My GCC version is 2.952
System Type: Pentium ~160MHz with MMX, 32MB RAM
If you copy the code above into a cc-file and try to compile it, it should
be pretty easy to reproduce this error. Hoping for a fast reply we stay in
close contact with
best regards
Martin Czamai
M.Czamai@peak-system.com < mailto:M.Czamai@peak-system.com >
More information about the Gcc-bugs
mailing list