https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106731
anlauf at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-valid-code --- Comment #7 from anlauf at gcc dot gnu.org --- (In reply to federico from comment #4) > The TREE_STATIC assert should be valid according to what reported in the > implementation at report https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48298 > > But, I can't tell what that means. I did a "git blame" on gcc/fortran/trans-array.cc, and that says that the last change of the offentding line was in 2004. The corresponding commit replaced assert() by gcc_assert(). Haven't looked further, but I guess you should really try Steve's patch and see if it not only fixes your problem, but regtests ok and maybe works for cases not yet in the testsuite.