public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Toon Moene <toon@moene.indiv.nluug.nl>
To: Nodar <shubi@nusun.jinr.ru>
Cc: gcc-help@gcc.gnu.org
Subject: Re: integer*8
Date: Fri, 14 Nov 2003 21:35:00 -0000	[thread overview]
Message-ID: <3FB54AEC.8090606@moene.indiv.nluug.nl> (raw)
In-Reply-To: <6016367968.20031113133004@nu.jinr.ru>

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)

      reply	other threads:[~2003-11-14 21:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-13 10:20 integer*8 Nodar
2003-11-14 21:35 ` Toon Moene [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3FB54AEC.8090606@moene.indiv.nluug.nl \
    --to=toon@moene.indiv.nluug.nl \
    --cc=gcc-help@gcc.gnu.org \
    --cc=shubi@nusun.jinr.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).