https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83948
--- Comment #5 from Bill Long <longb at cray dot com> --- I tried on my Mac laptop (gcc version 6.3.0) and it also works there. Evidently not a representative test. The differences I see between that environment and the original customer's is that they are running 7.2.0, using srun (SLURM) for program launch, and running on Broadwell processors. The original error Internal Error: stash_internal_unit(): Stack Size Exceeded suggests some issue with running out of memory.