If one compiles
-----------------
module test
  implicit none
  type epot_t
    integer :: c
    type(nonexist),pointer :: l
  end type epot_t
end module test
-----------------
no error (and no warning) is shown. If one removes the keyword "pointer", the
error message "Derived type at (1) has not been previously defined" is shown.

Expected: Also for pointers, such a message is shown!

(ifort, g95, NAG f95 all give an error.)


-- 
           Summary: No error given if using a non-defined type in a type
                    definition
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tobias dot burnus at physik dot fu-berlin dot de


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

Reply via email to