https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114141
Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jvdelisle at gcc dot gnu.org --- Comment #1 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> --- I see the fail here but I am not sure of the validity. I am going to read the latest standard. I always thought of associate to refer associate complicated data references to make code more readable. In this case it is referring to a function which resolves to a constant. Interestingly if I wrap the associate with parens one gets: associate (x => (log(cmplx(-1,0)))) $ gfc pr114141.f90 pr114141.f90:6:14: 6 | y = x%im | 1 Error: The RE or IM part_ref at (1) must be applied to a COMPLEX expression