I'm using gcc 4.7.2 (latest stable version I think). I don't get the compilation error of the FORMAT statement but I do get the segfault error on running with the '-malign-double' switch that I reported. So it would appear that even the current stable version is buggy! As Jon said the workaround is to leave off '-malign-double': it has very little effect on performance anyway. Or use ifort (main reason I use it is past bugs in Gnu compilers). Cheers -- Ian On 7 March 2013 09:44, vellieux <[log in to unmask]> wrote: > Hi Jon, > > Thanks for the feedback. The version I am using (which is not that > reported in the web page you mention, Version: 4:4.3.2-2) is: > GNU Fortran (GCC) 4.4.6 20120305 (Red Hat 4.4.6-4). > > Hence it appears that the bug hasn't been entirely dealt with. Ian Tickle > was getting segmentation faults (so he may be using gfortran V 4.3.2-2), I > was only getting a binary that crashes due to a missing left parenthesis in > a FORMAT statement (the parenthesis was there as far as I could see...). > > Thanks again, > > Fred. > > > On 07/03/13 10:23, Jon Agirre wrote: > >> Dear Fred, >> >> I would say that you're using a buggy gfortran version >> (http://lists.debian.org/**debian-gcc/2009/03/msg00070.**html<http://lists.debian.org/debian-gcc/2009/03/msg00070.html>). >> You may >> want to check your version with 'gfortran --version' in order to be >> sure of it. The '-malign-double' switch provides only a slight >> optimization and as you have already proven, it may be removed with >> very little impact on performance. >> >> Cheers, >> >> Jon >> > > > -- > Fred. Vellieux (B.Sc., Ph.D., hdr) > ouvrier de la recherche > IBS / ELMA > 41 rue Jules Horowitz > F-38027 Grenoble Cedex 01 > Tel: +33 438789605 > Fax: +33 438785494 >