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/37412] No error on repeated declaration



------- Comment #6 from dfranke at gcc dot gnu dot org  2009-12-08 21:01 -------
(In reply to comment #4)
> Maybe I could change this warning into an error even for non-standard 
> conforming mode in case the length or a kind parameter differs.  What
> do you think?

I assume, this happened at some point. Current 4.5.0 20091208 gives:

$> gfortran-svn pr37412.f90
pr37412.f90:3.17:

  character(1) st
                 1
Error: Symbol 'st' at (1) already has basic type of CHARACTER

I believe this is correct. Closing.


-- 

dfranke at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dfranke at gcc dot gnu dot
                   |                            |org
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.5.0


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


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