https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54613
Thomas Koenig <tkoenig at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #44834|0 |1 is obsolete| | --- Comment #15 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- Created attachment 44840 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44840&action=edit Patch for the library version, minus quite a few bugs OK, so here is something that people can actually test. It currently has no support for simplification and no support for findloc(rank_one_array,value,dim=1), but otherwise it looks quite good. If you apply this, the libgfortran/generated/findloc* files will be added; if you apply it for a second time, everything will be added twice in the files, which will lead to many confusing error messages :-) Currently, you have to add -static-libgfortran to the command line for this to work, because I didn't add the symbols to gfortran.map yet (but this should be straightforward). Design decision: To avoid combinatorial explosion, the library files use index_type only. For other integer kinds, the results are converted on return.