------- Comment #2 from kargl at gcc dot gnu dot org 2008-05-06 15:17 ------- The problem arises because fortran/trans-intrinsics.c and libgfortran/intrinsics/size.c were not updated to deal with the addition of the KIND keyword. If you change the code to use size(array, dim=1, kind=long), then the kind=long is essentially ignored. In your case, _gfortran_size1 is given dim=long, which is dim=8, which of course segfaults.
To get a error message, add -std=f95 to your command line; otherwise, gfortran accepts most Fortran 2003 intrinsic subprograms by default. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36153