[fpc-devel] Internal error with division by QWord (Issue #33004)
J. Gareth Moreton
gareth at moreton-family.com
Thu Jan 11 23:48:04 CET 2018
On Thu 11/01/18 21:03 , Florian Klämpfl
florian at freepascal.org sent:
> Am 11.01.2018 um 21:46 schrieb J. Gareth
> > So while testing some proposed
> how div and mod operations are compiled,
I came across an
> > internal error in the compiler.
> > https://bugs.freepascal.org/view.php?
> > I haven't yet delved into the location
> Internal error 200706094, but something
worth bringing up because it
> > is a fairly fundamental flaw with a
> simple operation.
> > Possibly related, but the compiler
> treats numbers larger than or equal to
> > signed (Int64) regardless of the
context or what
> it's being assigned to (this usually
> > warnings, but also involves causing
div to be
> signed instead of unsigned unless the
constant is explicitly
> > typecast, which raises the
> internal error on 'div', but not 'mod').
> I solved it meanwhile.
That was fast!
> fpc-devel maillist - fpc-
devel at lists.freepascal.org
More information about the fpc-devel