This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/29364] New: No error given if using a non-defined type in a type definition
- From: "tobias dot burnus at physik dot fu-berlin dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Oct 2006 00:05:53 -0000
- Subject: [Bug fortran/29364] New: No error given if using a non-defined type in a type definition
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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