public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/44978] New: extended derived types are resolved more than once
@ 2010-07-18 14:28 janus at gcc dot gnu dot org
0 siblings, 0 replies; only message in thread
From: janus at gcc dot gnu dot org @ 2010-07-18 14:28 UTC (permalink / raw)
To: gcc-bugs
Consider the following test case:
type :: t1
type(xy),pointer :: c
end type t1
type, extends(t1) :: t2
end type
type, extends(t2) :: t3
end type
end
This is correctly rejected with:
type(xy),pointer :: c
1
Error: The pointer component 'c' of 't1' at (1) is a type that has not been
declared
The problem is that the error message occurs three times (or even more, if one
adds further types which extend upon t1), because resolve_fl_derived is called
more than once for the base type.
--
Summary: extended derived types are resolved more than once
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: janus at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44978
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-07-18 14:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-18 14:28 [Bug fortran/44978] New: extended derived types are resolved more than once janus at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).