When I compile the attached file I get the following
errors:
C:\GCR250>sdcc BugReport3.c
BugReport3.c:20: error: FATAL Compiler Internal Error in
file 'gen.c' line number '8336' : need pointerCode
Contact Author with source code
BugReport3.c:20: error: FATAL Compiler Internal Error in
file 'gen.c' line number '8336' : need pointerCode
Contact Author with source code
BugReport3.c:20: error: FATAL Compiler Internal Error in
file 'gen.c' line number '8336' : need pointerCode
Contact Author with source code
C:\GCR250>sdcc -v
SDCC :
mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51
/ds400/hc08 2.4.1 (May 14 2004) (MINGW32)
When I modify the code so that the structures are
stored in the code memory (as I originally intended) the
file compiles correctly:
code struct Families ...
code struct Areas ...
Laszlo BORTEL
Email: bortel.laszlo@ln.matav.hu
FATAL Compiler Internal Error in file 'gen.c' line number '8336'
Logged In: YES
user_id=888171
Hi,
The code can be reduced to this to produce the error:
#define nLanguage 4
#define nAreas 2
typedef struct Area {
char* Name[nLanguage];
};
struct Area Areas[nAreas]= {
{
{"A", "I", "I"}
}
};
And this is essentially the same as bug 868103.
Areas is in (x)data memory and the constant string is in code
memory.
Greets,
Maarten
Logged In: YES
user_id=888171
Fixed in SDCC 2.4.4 #831