http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55214
--- Comment #1 from pmarguinaud at hotmail dot com 2012-11-05 14:03:32 UTC --- $ gfortran -g -O0 -ffpe-trap=invalid -static where.F90 $ ./a.out Program received signal SIGFPE: Floating-point exception - erroneous arithmetic operation. Backtrace for this error: #0 0x40FBFD in _gfortrani_show_backtrace at backtrace.c:260 #1 0x400676 in _gfortrani_backtrace_handler at compile_options.c:129 #2 0x42996F in raise #3 0x4004C7 in MAIN__ at where.F90:10 Exception en point flottant Tested with gfortran 4.6.1 and latest 4.7; it looks like SQRT(X) is evaluated where L is false.