------- Comment #10 from janus at gcc dot gnu dot org 2009-11-15 15:49 ------- (In reply to comment #9) > error #6837: The leftmost part-ref in a data-ref can not be a function > reference.
This is C612 in the Fortran 2003 standard: R612 data-ref is part-ref [ % part-ref ] ... R613 part-ref is part-name [ ( section-subscript-list ) ] C612 (R612) The leftmost part-name shall be the name of a data object. 2.4.3.1 Data object A data object (often abbreviated to object) is a constant (4.1.2), a variable (6), or a subobject of a constant. This makes comments #6 to #8 invalid. However, a proper error message could be added for these cases (similar to ifort's). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42048