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
* [Bug fortran/20058] Error on kind 16 hex data statement
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 ` sgk at troutmask dot apl dot washington dot edu
2005-02-21 23:01 ` kargl at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: sgk at troutmask dot apl dot washington dot edu @ 2005-02-19 11:47 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From sgk at troutmask dot apl dot washington dot edu 2005-02-18 22:48 -------
I have a tentative patch for this problem. Unfortunately, it leads
to a different problem. It appears that if your system supports
integer(kind=16), then gfortran can't print the values.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20058
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/20058] Error on kind 16 hex data statement
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
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: kargl at gcc dot gnu dot org @ 2005-02-21 23:01 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From kargl at gcc dot gnu dot org 2005-02-21 18:23 -------
For a patch see
http://gcc.gnu.org/ml/gcc-patches/2005-02/msg01253.html
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20058
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/20058] Error on kind 16 hex data statement
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
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-21 23:07 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-02-21 18:45:29
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20058
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/20058] Error on kind 16 hex data statement
2005-02-18 21:17 [Bug fortran/20058] New: Error on kind 16 hex data statement dir at lanl dot gov
` (2 preceding siblings ...)
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
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-02-28 12:11 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-02-28 00:38 -------
Subject: Bug 20058
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: kargl@gcc.gnu.org 2005-02-28 00:38:13
Modified files:
gcc/fortran : ChangeLog trans-types.c gfortran.h primary.c
Log message:
PR fortran/20058
* trans-types.c (gfc_max_integer_kind): Declare
(gfc_init_kinds): Initialize it.
* gfortran.h (gfc_max_integer_kind): extern it.
* primary.c (match_boz_constant): Use it; remove gfortran extension
of kind suffixes on BOZ literal constants
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&r1=1.336&r2=1.337
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-types.c.diff?cvsroot=gcc&r1=1.37&r2=1.38
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/gfortran.h.diff?cvsroot=gcc&r1=1.58&r2=1.59
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/primary.c.diff?cvsroot=gcc&r1=1.22&r2=1.23
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20058
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/20058] Error on kind 16 hex data statement
2005-02-18 21:17 [Bug fortran/20058] New: Error on kind 16 hex data statement dir at lanl dot gov
` (3 preceding siblings ...)
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
4 siblings, 0 replies; 6+ messages in thread
From: kargl at gcc dot gnu dot org @ 2005-02-28 12:34 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From kargl at gcc dot gnu dot org 2005-02-28 00:42 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.0.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).