public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/15233] New: INTEGER(8) erronous compiler error
@ 2004-04-30 19:02 gcc-bugzilla at gcc dot gnu dot org
2004-04-30 19:15 ` [Bug fortran/15233] [gfortran] " pinskia at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: gcc-bugzilla at gcc dot gnu dot org @ 2004-04-30 19:02 UTC (permalink / raw)
To: gcc-bugs
Consider the following program
program h
implicit none
integer(4) i4
integer(8) i8
i4 = huge(i4)
i8 = huge(i8)
print*,'i4 = ', i4 ! This prints 2147483647
print*,'i8 = ', i8 ! This prints 9223372036854775807
!
! This causes a compiler error
!
i8 = 922337203685
end program h
kargl[335] gfortran -static -o h h.f90
In file h.f90:12
i8 = 922337203685
1
Error: Integer too big for its kind at (1)
The last time I checked 922337203685 was much less than
9223372036854775807.
Environment:
System: FreeBSD c-67-168-59-70.client.comcast.net 5.2-CURRENT FreeBSD 5.2-CURRENT #2: Sat Apr 24 10:33:08 PDT 2004 kargl@c-67-168-59-70.client.comcast.net:/usr/obj/usr/src/sys/HOTRATS i386
host: i386-unknown-freebsd5.2
build: i386-unknown-freebsd5.2
target: i386-unknown-freebsd5.2
configured with: ../gcc/configure --prefix=/home/kargl/gcc/work --disable-libmudflap --enable-languages=c,f95 --with-gmp=/usr/local
How-To-Repeat:
See above.
--
Summary: INTEGER(8) erronous compiler error
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: kargl at c-67-168-59-70 dot client dot comcast dot net
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i386-unknown-freebsd5.2
GCC host triplet: i386-unknown-freebsd5.2
GCC target triplet: i386-unknown-freebsd5.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15233
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/15233] [gfortran] INTEGER(8) erronous compiler error
2004-04-30 19:02 [Bug fortran/15233] New: INTEGER(8) erronous compiler error gcc-bugzilla at gcc dot gnu dot org
@ 2004-04-30 19:15 ` pinskia at gcc dot gnu dot org
2004-04-30 20:09 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-30 19:15 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |rejects-valid
Summary|INTEGER(8) erronous compiler|[gfortran] INTEGER(8)
|error |erronous compiler error
Target Milestone|--- |tree-ssa
Version|unknown |tree-ssa
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15233
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/15233] [gfortran] INTEGER(8) erronous compiler error
2004-04-30 19:02 [Bug fortran/15233] New: INTEGER(8) erronous compiler error gcc-bugzilla at gcc dot gnu dot org
2004-04-30 19:15 ` [Bug fortran/15233] [gfortran] " pinskia at gcc dot gnu dot org
@ 2004-04-30 20:09 ` pinskia at gcc dot gnu dot org
2004-04-30 21:34 ` sgk at troutmask dot apl dot washington dot edu
2004-04-30 21:52 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-30 20:09 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-30 19:20 -------
IFC also gives an error:
program H
i8 = 922337203685
^
Error 18 at (12:pr15233.f90) : invalid integer constant
1 Error
compilation aborted for pr15233.f90 (code 1)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15233
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/15233] [gfortran] INTEGER(8) erronous compiler error
2004-04-30 19:02 [Bug fortran/15233] New: INTEGER(8) erronous compiler error gcc-bugzilla at gcc dot gnu dot org
2004-04-30 19:15 ` [Bug fortran/15233] [gfortran] " pinskia at gcc dot gnu dot org
2004-04-30 20:09 ` pinskia at gcc dot gnu dot org
@ 2004-04-30 21:34 ` sgk at troutmask dot apl dot washington dot edu
2004-04-30 21:52 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: sgk at troutmask dot apl dot washington dot edu @ 2004-04-30 21:34 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From sgk at troutmask dot apl dot washington dot edu 2004-04-30 21:05 -------
Please close this bug report. I forgot the Fortran parsing rules
while writing test case for the bit manipulations routines. The
numerical constants needs a _8 suffix, ie., i8 = 922337203685_8
for a valid INTEGER(8) constant. Sorry about the noise.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15233
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/15233] [gfortran] INTEGER(8) erronous compiler error
2004-04-30 19:02 [Bug fortran/15233] New: INTEGER(8) erronous compiler error gcc-bugzilla at gcc dot gnu dot org
` (2 preceding siblings ...)
2004-04-30 21:34 ` sgk at troutmask dot apl dot washington dot edu
@ 2004-04-30 21:52 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-30 21:52 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-30 21:18 -------
Closing as invalid per submitter.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15233
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-04-30 21:18 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-30 19:02 [Bug fortran/15233] New: INTEGER(8) erronous compiler error gcc-bugzilla at gcc dot gnu dot org
2004-04-30 19:15 ` [Bug fortran/15233] [gfortran] " pinskia at gcc dot gnu dot org
2004-04-30 20:09 ` pinskia at gcc dot gnu dot org
2004-04-30 21:34 ` sgk at troutmask dot apl dot washington dot edu
2004-04-30 21:52 ` pinskia 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).