updated hints file with known bug about shifting variables of set type

This commit is contained in:
Norayr Chilingarian 2013-10-30 21:47:34 +04:00
parent 740a507760
commit 80a34fe70c

5
hints
View file

@ -24,3 +24,8 @@ set your BOOLEAN value in OPM.OpenPari (or in ScanOptions, after the CASE) so yo
check your boolean when necessary, (see useParFile in OPM.GetOptions) check your boolean when necessary, (see useParFile in OPM.GetOptions)
add it in OPC.GenHeaderMsg function. add it in OPC.GenHeaderMsg function.
==known bugs==
when SYSTEM.LSH(s, n) where s is SET c compiler generates an error: "error: duplicate 'unsigned'", that's because SET is defined as unsigned already and LSH is defined in SYSTEM.h as ((t)((unsigned t)(x)<<(n))), that's why currently it's not possible to make SYSTEM.LSH with type SET.
I don't want to prohibit it at the parser level because C backend is only one of possible backends.
The solution currently is to cast set type to longint before lsh-ing it. And then casting it back to set if necessary.