[fpc-devel] adding a new token to compiler cause exception
mohsen.timar at gmail.com
Tue Oct 13 21:42:03 CEST 2015
I want to add two overloadable operators “>>” and “<<” to use them as “shr”
and “shl” ，or writing into and reading from streams and the other functions
like those mentioned above.
در تاریخ ۱۳ اکتبر ۲۰۱۵ ۲۲:۲۱، "Sven Barth" <pascaldragon at googlemail.com>
> Am 13.10.2015 19:59 schrieb "Mohsen" <mohsen.timar at gmail.com>:
> > Hi
> > I need add two token to compiler to implement my ideas.
> > adding first token done but second token cause range check exception in
> lines like this
> > if (idtoken in [_EXPORT,_EXTERNAL,_WEAKEXTERNAL,_PUBLIC,_CVAR]) then
> > ptconst.pas(95,45) Error: range check error in set constructor or
> duplicate set element
> > how to solve it ?
> First it would be best if you'd show us what exactly you have changed.
> Otherwise we won't be able to help you...
> fpc-devel maillist - fpc-devel at lists.freepascal.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-devel