This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/28526] 'end' is recognized as a variable incorrectly
- From: "kargl at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Jul 2006 18:20:30 -0000
- Subject: [Bug fortran/28526] 'end' is recognized as a variable incorrectly
- References: <bug-28526-9795@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from kargl at gcc dot gnu dot org 2006-07-31 18:20 -------
Andrew,
end is a keyword, but Fortran does not have reserved keywords.
integer end
end = 1
print *, end
end
The two 'end's are distinct. Yes, it's prudent not to use keywords
in some other way, but Fortran does it prevent one from possibly
shoot their foot.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28526