shift-count-overflow possible issue on 64bit type
Florian Weimer
fweimer@redhat.com
Mon Nov 25 12:18:00 GMT 2019
* Jonathan Wakely:
> Why do you expect a different result for these?
>
> A small = 1 << 40;
> B big = 1 << 40;
>
> In both cases the expression is 1 << 40, the type of A or B is irrelevant.
Some languages define integer literals in such a way that they have
types which do not exist at run time and evaluate constant expressions
with infinite precision.
Thanks,
Florian
More information about the Gcc-help
mailing list