In the Fortran95 standard, section 5.1, one finds:

Constraint: If the POINTER attribute is specified, the TARGET, INTENT,
EXTERNAL, or INTRINSIC attribute shall not be specified.

Thus, the following should be rejected with -std=f95:

 external f
 pointer f

And consequently also something like this:

function f()
 intrinsic sin
 external f
 pointer f
 real f
! ICE without the following line
! strange error with that line
!  f => sin
end function f


-- 
           Summary: f95: conflict between EXTERNAL and PROCEDURE
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: janus at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39692

Reply via email to