Menu

#757 BugReport3.c:20: error: FATAL Compiler Internal Error in fil

closed-fixed
5
2013-05-25
2004-05-14
Anonymous
No

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

Discussion

  • Nobody/Anonymous

    FATAL Compiler Internal Error in file 'gen.c' line number '8336'

     
  • Maarten Brock

    Maarten Brock - 2004-05-18

    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

     
  • Maarten Brock

    Maarten Brock - 2004-09-09

    Logged In: YES
    user_id=888171

    Fixed in SDCC 2.4.4 #831

     
  • Maarten Brock

    Maarten Brock - 2004-09-09
    • labels: --> Icode generator
    • milestone: --> fixed
    • assigned_to: nobody --> maartenbrock
    • status: open --> closed-fixed
     

Log in to post a comment.