This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/28526] 'end' is recognized as a variable incorrectly



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]