public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* integer*8
@ 2003-11-13 10:20 Nodar
  2003-11-14 21:35 ` integer*8 Toon Moene
  0 siblings, 1 reply; 2+ messages in thread
From: Nodar @ 2003-11-13 10:20 UTC (permalink / raw)
  To: gcc-help

Hello All !

   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.
   When I use another construction:
       INTEGER *8 c
       c=92233720368547755807
I receive analogous answer.
   Please, help me.
                           Nodar Shubitidze
                           Lab. Nuclear problems
                           Joint Institute for Nuclear Research
                           Dubna, Moscow region, RUSSIA

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: integer*8
  2003-11-13 10:20 integer*8 Nodar
@ 2003-11-14 21:35 ` Toon Moene
  0 siblings, 0 replies; 2+ messages in thread
From: Toon Moene @ 2003-11-14 21:35 UTC (permalink / raw)
  To: Nodar; +Cc: gcc-help

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)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-11-14 21:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-13 10:20 integer*8 Nodar
2003-11-14 21:35 ` integer*8 Toon Moene

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).