[Bug fortran/37712] Parent component name getting confused with structure constructor

domob at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Oct 2 07:23:00 GMT 2008



------- Comment #1 from domob at gcc dot gnu dot org  2008-10-02 07:22 -------
(In reply to comment #0)
>   subroutine x_init (this, text, value)
>     type(x_t) :: this
>     character(*) :: text
>     integer :: value
> 
>     call base_t%init (text)
> ! or...
>     call base_init (base_t, text)

I can't see why this should be valid; base_t does not name any variable and
thus can not have neither a component reference nor be an actual argument.  So
when encountering base_t the compiler thinks correctly a structure constructor
is to follow.

Or did I miss something?


-- 


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



More information about the Gcc-bugs mailing list