MODULE TESTS
       dimension :: k(4)
     CONTAINS
     function k()
       k = 35
     end function k
     END MODULE

is invalid (variable "k" vs. function "k"), but not detected.

Needs to be fixed in decl.c's get_proc_name; I have a patch, but it causes
regressions


-- 
           Summary: Flavor VARIABLE vs. FUNCTION: Accepts invalid
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


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

Reply via email to