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