When I compile this code in debug mode I get:
Compiling with Intel(R) Visual Fortran Compiler XE 14.0.0.103 [IA-32]... ifort /debug:full /Od /Qip /extend_source:80 /d_lines /Qcoarray:shared /Qpar-report0 /Qvec-report0 /warn:all /debug-parameters:used /Qsave /align:dcommons /align:sequence /module:"Debug/" /object:"Debug/" /check:all /libs:static /threads /c /switch:coarray_opts /Qvc10 /Qlocation,link,"C:\Program Files (x86)\Microsoft Visual Studio 10.0\Intel Fortran\Microsoft Files\VC\\bin""C:\Users\chris\Documents\Visual Studio 2010\Projects\snapclus v4.4\PS.f90" Intel(R) Visual Fortran Compiler XE for applications running on IA-32, Version 14.0.0.103 Build 20130728 Copyright (C) 1985-2013 Intel Corporation. All rights reserved.
fortcom: Fatal: There has been an internal compiler error (C0000005).
compilation aborted for C:\Users\chris\Documents\Visual Studio 2010\Projects\snapclus v4.4\PS.f90 (code 1)
SnapClus - 1 error(s), 0 warning(s)
It compiles OK under Release mode.
I seem to remember that internal compiler errors are an Intel problem?
ChrisG