https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92284
--- Comment #4 from José Rui Faustino de Sousa <jrfsousa at gmail dot com> --- Sorry I blooped while trying to simplify the sample code... :-( The new code should ICE 10.0.0, but not 9.1.0, using either the C procedure or the Fortran bind(c) one. Using just the "arr_set" procedure with bind(c) set is very likely a duplicate of PR 92189 like you mention. Sorry for the mishap I hope the code is correct this time around. Thank you very much. Best regards, José Rui