Salvatore, I think that you will have to provide us with a complete sample program. That your code works with three other compilers is slightly suggestive of a bug, however. But you never know, perhaps gfortran is the only one to be right..... Paul T