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/29364] New: No error given if using a non-defined type in a type definition


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


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