public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/20058] New: Error on kind 16 hex data statement
@ 2005-02-18 21:17 dir at lanl dot gov
  2005-02-19 11:47 ` [Bug fortran/20058] " sgk at troutmask dot apl dot washington dot edu
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: dir at lanl dot gov @ 2005-02-18 21:17 UTC (permalink / raw)
  To: gcc-bugs

I get an error with the Macintosh gfortran from the 20050213 package. This
compilies with out problem on all the f90 and f95 compiliers that I have tried.
Puting "Z'4002800000000000'_INT8" as the data statement will let gfortran
compile it, but then Absoft 9.0, Layhey 6.2 and IBM will reject it.

[dranta:~/tests/gfortran] dir% gfortran -c sagechanges.f90
 In file sagechanges.f90:5

        data ieee64_two / Z'4002800000000000'/
                                            1
Error: Integer too big for integer kind 4 at (1)
[dranta:~/tests/gfortran] dir% cat sagechanges.f90
      subroutine get_real_type()
        implicit none
        integer, parameter :: INT8  = SELECTED_INT_KIND(16)
        integer(INT8) :: ieee64_two
        data ieee64_two / Z'4002800000000000'/
      end subroutine get_real_type

-- 
           Summary: Error on kind 16 hex data statement
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dir at lanl dot gov
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: powerpc-apple-darwin7.8.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20058


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

end of thread, other threads:[~2005-02-28  0:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-18 21:17 [Bug fortran/20058] New: Error on kind 16 hex data statement dir at lanl dot gov
2005-02-19 11:47 ` [Bug fortran/20058] " sgk at troutmask dot apl dot washington dot edu
2005-02-21 23:01 ` kargl at gcc dot gnu dot org
2005-02-21 23:07 ` pinskia at gcc dot gnu dot org
2005-02-28 12:11 ` cvs-commit at gcc dot gnu dot org
2005-02-28 12:34 ` kargl at gcc dot gnu dot org

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).