when compiled with 'ifort test.f' under Redhat 9 produces as output:
instead of the correct result, 0. Interestingly, the result is correct when the first character of the value of the variable s is not 'A'.
Output of 'ifort -V':
Intel Fortran Compiler for 32-bit applications, Version 8.0 Build 20031016Z
Package ID: l_fc_p_8.0.034