14 May
2013
14 May
'13
10:58 a.m.
Jay Michael wrote:
gpc version 20070904, based on gcc-3.4.5 (mingw special)
Given type INT16 = INTEGER attribute( size=16 ) ; type WORD16 = Cardinal attribute( size=16 ) ; var i16 : INT16 ; var w16 : WORD16 ; why does WORD16(I16) := W16 ; produce "error: invalid lvalue in assignment"?
A bug in the compiler. GPC is too picky when it comes to typecasts. Regards, Adriaan van Os