Re: variable type cast
Adriaan van Os <[email protected]>
| Newsgroups | gmane.comp.compilers.gpc |
|---|---|
| Message-ID | <[email protected]> |
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 _______________________________________________ Gpc mailing list [email protected] https://www.g-n-u.de/mailman/listinfo/gpc