# \`gfortran\` ICE in a function array construct

**URL:** <https://fortran-lang.discourse.group/t/gfortran-ice-in-a-function-array-construct/7516>\
**Category:** Help\
**Created:** [March 1, 2024, 7:10pm UTC](https://fortran-lang.discourse.group/t/gfortran-ice-in-a-function-array-construct/7516 "2024-03-01T19:10:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eelis](https://avatars.discourse-cdn.com/v4/letter/e/c6cbf5/32.png) [@eelis](https://fortran-lang.discourse.group/u/eelis)\
**Post date:** [March 1, 2024, 7:10pm UTC](https://fortran-lang.discourse.group/t/gfortran-ice-in-a-function-array-construct/7516/1 "2024-03-01T19:10:45Z")

</div>

I mentioned in the other thread that I have tried to make a function array like this [Is it possible to define the product of 2 procedure pointers at runtime? - #7 by ivanpribec](https://fortran-lang.discourse.group/t/is-it-possible-to-define-the-product-of-2-procedure-pointers-at-runtime/7450/7) in one of my hobby projects (fpm package available here [GitHub - ettaka/fmot](https://github.com/ettaka/fmot)). In the past I tried to do it but got compiler errors. Now with the working MVP example from @ivanpribec I got more confident that I will be able to do it. When I tried to implement it in this commit [Implement a force array · ettaka/fmot@2499741 · GitHub](https://github.com/ettaka/fmot/commit/249974135102117bcf01274c4827b0a31812bf19)  
I got an ICE in `gfortran` up until version 13 (last one I tried). I am pretty sure I do everything correctly and it is a problem with `gfortran` because `flang` compiles and runs it correctly. I wonder what the actual problem might be because I would like to report it, but I doubt they will run my fpm package.
