https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77344
Yuri Rumyantsev <ysrumyan at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ysrumyan at gmail dot com --- Comment #3 from Yuri Rumyantsev <ysrumyan at gmail dot com> --- I checked that this bug has been fixed in GCC 6 branch some time ago and fresh version of it compiles this file successfully: GNU Fortran2008 (Revision=239431/svn-rev:239431/) version 6.1.1 20160812 (x86_64-pc-linux-gnu) compiled by GNU C version 6.1.1 20160812 It looks like you need to get next release of GCC 6 branch compiler. Note that I can reproduce ICE with the earlier GCC 6 branch compiler: compiled by GNU C version 6.1.1 20160617.