https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59298
--- Comment #5 from Adam Hirst <adam at aphirst dot karoo.co.uk> --- I decided to check on the status of this bug in 4.9.2, as it's been a little while, and the segmentation fault still occurs. Interestingly, the test case that Janus posted on 2013-01-03 can be made to compile and seemingly run correctly if the line f = (planes(1)%M) is replaced with f = planes(1)%M . and this also holds true for the test case I uploaded on 2013-11-26. Perhaps this fact is of some interest, or might provide some insight into what the underlying issue might be?