http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48889
--- Comment #2 from David Ham <david.ham at imperial dot ac.uk> 2011-05-07 18:37:22 UTC --- Created attachment 24205 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24205 Small test exhibiting the problem. I am one of the fluidity development team. This is a very cut down source which exhibits the problem. It produces the following compiler output: dham@hex foo > gfortran-4.6 -c foo.f90 foo.f90:103:0: internal compiler error: in gfc_is_constant_expr, at fortran/expr.c:906 Please submit a full bug report, with preprocessed source if appropriate. >From the experience of cutting down the source to this test, I think it's something to do with the generic interface "size".