https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103284

anlauf at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |anlauf at gcc dot gnu.org

--- Comment #1 from anlauf at gcc dot gnu.org ---
Created attachment 60292
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60292&action=edit
Hackish fix

Confirmed.

This hackish patch fixes the ICE and emits:

pr103284-z1.f90:6:15:

    6 |   class(t) :: x
      |               1
Error: CLASS variable 'x' at (1) must be dummy, allocatable or pointer


However, the fix could also be pushed to copy_ts_from_selector_to_associate
if that is a better place.

An expert's opinion in the area of ASSOCIATE is highly welcome.

Reply via email to