Article View: gnu.gcc.bug
Article #6293g77 gratuitous warning
From: Jim Van Zandt
Date: Mon, 11 Dec 1995 00:00
Date: Mon, 11 Dec 1995 00:00
35 lines
1399 bytes
1399 bytes
When compiling this "program":
if (nopt .lt. 7) then
65 print 977
endif
if (disthrin .lt. 7) go to 65
977 format (' ')
end
g77 generates this warning:
try.f:2: warning:
65 print 977
1
try.f:4: (continued):
if (disthrin .lt. 7) go to 65
2
Reference to label at (2) is outside block containing definition at
(1)
I don't see anything objectionable about this fragment.
My program versions are as follows:
$ g77 -v try.f
gcc -v -xf77 try.f -xnone -lg77 -lm
Reading specs from /usr/lib/gcc-lib/i486-linux/2.6.3/specs
gcc version 2.6.3
/usr/lib/gcc-lib/i486-linux/2.6.3/f771 try.f -quiet -dumpbase try.f
-version -fversion -o /tmp/cca04249.s
GNU F77 version 2.6.3 (80386, BSD syntax) compiled by GNU C version
2.6.3.
GNU Fortran Front End version 0.5.16 compiled: Sep 5 1995 12:03:04
- Jim Van Zandt
Technical Details
Message-ID:
<4ahpe3$1fa@linus.mitre.org>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 113d02,6c2a083584ae687e,start X-Google-Attributes: gid113d02,public From: jrv@mbunix.mitre.org (Jim Van Zandt) Subject: g77 gratuitous warning Date: 1995/12/11 Message-ID: <4ahpe3$1fa@linus.mitre.org> X-Deja-AN: 121609975 distribution: gnu sender: daemon@cis.ohio-state.edu organization: The MITRE Corporation, Bedford Mass. reply-to: jrv@mitre.org newsgroups: gnu.gcc.bug