integer*8
Toon Moene
toon@moene.indiv.nluug.nl
Fri Nov 14 21:35:00 GMT 2003
Nodar wrote:
> I work with long integers. I use in my program:
> INTEGER *8 c/Z'7FFFFFFFFFFFFFFF'/
> where 7FFFFFFFFFFFFFFF = 92233720368547755807 = 2^63-1 - maximal
> integer number. From compiller I receive:
>
> INTEGER *8 c/Z'7FFFFFFFFFFFFFFF'/
> ^
> Integer at (^) too large.
This can be solved by using the flag: -ftypeless-boz.
> When I use another construction:
> INTEGER *8 c
> c=92233720368547755807
> I receive analogous answer.
Yep, please use the Z'7FFFFFFFFFFFFFFF' form and the -ftypeless-boz flag.
Hope this helps,
--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
GNU Fortran 95: http://gcc.gnu.org/fortran/ (under construction)
More information about the Gcc-help
mailing list