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/30239] duplicate data type assignment not detected



------- Comment #6 from dfranke at gcc dot gnu dot org  2008-08-22 12:46 -------
FUNCTION foo()
  INTEGER :: foo
  INTEGER :: foo
  foo = 42
END FUNCTION

This is the same and I'd expect (at least) a warning here -- without -pedantic.
IMO, one should be warned (-Wsurpring/-Wall, no -pedantic, in any standard) if
the type is confirmed as shown above.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30239


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