This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/37712] Parent component name getting confused with structure constructor
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Oct 2008 12:11:16 -0000
- Subject: [Bug fortran/37712] Parent component name getting confused with structure constructor
- References: <bug-37712-15045@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from burnus at gcc dot gnu dot org 2008-10-02 12:11 -------
I'm completely lost with your example. You are talking about "parent component
name", but you have:
type x_t
which has no parent component.
Id had one if you used "type, extends(base_t) :: x_t". Then you could use:
call this%base_t%init (text)
or
call base_init (this%base_t, text)
However, even in this case it won't work as you are overriding "procedure init"
which is not allowed for the arguments you have passed.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37712