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/37712] Parent component name getting confused with structure constructor



------- 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


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