mirror of
https://github.com/vishapoberon/compiler.git
synced 2026-04-05 22:12:24 +00:00
updated hints file with known bug about shifting variables of set type
This commit is contained in:
parent
740a507760
commit
80a34fe70c
1 changed files with 5 additions and 0 deletions
5
hints
5
hints
|
|
@ -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)
|
||||
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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue