https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83540
--- Comment #2 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- Two possible methods: Either try to use ALLOCATE instead of assignment for front-end optimization, or simply disallow matmul for those cases. I am tempted to do the latter.