------- Comment #3 from burnus at gcc dot gnu dot org 2010-07-13 11:52 ------- For the program in comment 0, NAG prints: Error: aaa.f90, line 16: The argument to C_LOC must not be polymorphic though ifort and crayftn accept the code. Thus, at least with -std=f95/f2003/f2008 one should reject it. Whether one wants to allow it as extension (-std=gnu) is another question. It can be useful, sometimes, even though it is not well defined.
(In reply to comment #2) > (In reply to comment #1) > > However, it regresses at least on c_loc_tests_5.f03 and c_loc_tests_14.f90. > > Actually I have the feeling that both of these test cases are invalid, and the > patch is right to reject them. Well, NAG, ifort, pgi, and crayftn compile both programs; g95 compiles at least c_loc_tests_5.f03; thus, I am inclined to say that those two tests are valid. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44925