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



janus at gcc dot gnu.org changed:



           What    |Removed                     |Added

----------------------------------------------------------------------------

                 CC|                            |janus at gcc dot gnu.org



--- Comment #5 from janus at gcc dot gnu.org 2013-02-08 13:00:54 UTC ---

(In reply to comment #2)

> It seems to me that the UNION/MAP pair is analogous to a basic form of a c/c++

> union of structs.  Could the corresponding code not be ganked and fitted to

> this application?



Since GCC is a "C-centered" compiler, so to speak, the middle end is surely

able to handle unions (if the Fortran front end is taught to support them).





> It would make sense to me to allow UNION/MAP inside UDTs



Yes! (if by UDTs you mean "derived types", DT, as they are called in the

Fortran standard)





> as well as RECORDs and STRUCTUREs.



No. I would say the STRUCTURE/RECORD syntax should not be used at all, since it

can be replaced by standard DTs.





IMHO, UNION/MAP would be a useful extension to standard Fortran, while

STRUCTURE/RECORD would not (and should not be implemented in gfortran).

Reply via email to