[Bug fortran/30239] duplicate data type assignment not detected

dfranke at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Aug 22 12:48:00 GMT 2008



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



More information about the Gcc-bugs mailing list