This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/30239] duplicate data type assignment not detected
- From: "dfranke at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Aug 2008 12:46:42 -0000
- Subject: [Bug fortran/30239] duplicate data type assignment not detected
- References: <bug-30239-13648@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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