when referencing a structure element in a __code constant, sdcc outputs a (debug?) message stating that a generic pointer was initialized with an unknown storage class (and that it correctly assumes code space)
SDCC : mcs51/gbz80/z80/z180/r2k/ds390/pic16/pic14/TININative/ds400/hc08 3.1.0 #7066 (Feb 21 2012) (Linux)
sdcc --use-non-free -mpic16 bug04.c
pic16_printGPointerType: initialized generic pointer with unknown storage class assumes object in code space
pic16_printGPointerType: initialized generic pointer with unknown storage class assumes object in code space
example code