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/58026] [OOP] Bad error recovery for allocatable component of undeclared type


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

--- Comment #11 from janus at gcc dot gnu.org ---
Further reduced test case for the error recovery:

type sysmtx_t
   type(ext_complex_t), allocatable :: S(:)
end type
end


Trunk (and 4.4 - 4.8) yield:


c3.f90:3.40:

     type(ext_complex_t), allocatable :: S(:)
                                        1
Error: Derived type at (1) has not been previously defined and so cannot appear
in a derived type definition
c3.f90:3.45:

     type(ext_complex_t), allocatable :: S(:)
                                             1
Error: The pointer component 's' of 'sysmtx_t' at (1) is a type that has not
been declared



With the patch in comment 4 the second error, which is bogus, is removed.


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