Le 29/07/2025 à 09:01, Paul Richard Thomas a écrit :
I haven't had time to track them down but there are other places where code has had to be inserted to prevent non-polymorphic references in a polymorphic way. I wonder if they cannot be unified at some time?

Are there? gfc_get_class_from_expr seems to have quite a central place already; it's used in many places. In any case, my preference would be to make the class container readily available (there is gfc_se::class_container for it) every time we generate a polymorphic data reference. I think it would be easier that way than guessing after the fact from the data reference as we do currently. Anyway, as for everything that (mostly) works, changing it is lower priority.

Reply via email to