[Bug fortran/52227] [OOP] TARGET attribute mishandled in polymorphic types
burnus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jul 13 13:17:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52227
Tobias Burnus <burnus at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |janus at gcc dot gnu.org
--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-07-13 13:17:23 UTC ---
I think we need so change class.c's gfc_build_class_symbol. It currently only
handles pointer/allocatable plus a (co)rank.
It seems to definitely lacks support for TARGET, judging by this PR, PR51610
and PR53951. At least I fear that some wrong-code bug is lurking there if
TARGET is not properly set.
As written in comment 0, there might be other attributes which have to be taken
into account, e.g. VOLATILE or ASYNCHRONUOUS.
Recall that when adding letters to the type name, either the number of allowed
characters has to change or the length part in the hashing, otherwise, names
might get cropped.
We should try to fix this issue soonish, as it is a nasty wrong-code issue
(depending on the optimization and timing) and it affects the ABI!
More information about the Gcc-bugs
mailing list