https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61831
Dominique d'Humieres <dominiq at lps dot ens.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mikael at gcc dot gnu.org, | |pault at gcc dot gnu.org --- Comment #30 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- > A trivial workaround is to replace > call process_configuration (new_prt_spec ([prt_in])) > by > call process_configuration ([new_prt_spec (prt_in)]) Confirmed. > However, nevertheless you would want to understand why the elemental > function causes a malloc crash for dim 1 arrays and works for scalars > and dim > 1 arrays as input. Indeed, but I'll need some help!