Totally bizarre error, requesting assistance

Iain Buclaw via Digitalmars-d digitalmars-d at puremagic.com
Fri Sep 19 00:13:47 PDT 2014


On 19 September 2014 07:41, Koz Ross via Digitalmars-d
<digitalmars-d at puremagic.com> wrote:
> An update:
>
> If I don't use -O3 (in fact, if I don't use the -O flag at all), the code
> compiles and runs exactly as expected. I'm a little surprised (as even -O1
> causes this same strange behaviour). Could this be a bug?

If there's overflow occurring, and overflow is *expected* in the code,
then you are at the mercy of the optimiser working against you. :)


More information about the Digitalmars-d mailing list