Recently an ancient program failed to compile because it had a subroutine named
perror. This led to confusing diagnostics about number of arguments. The
problem was fixed by appropriate insertion of EXTERNAL statements.

gfortran appears to define an intrinsic named perror, but this fact is not
documented anywhere that I can see. I suspect there may be other hidden
non-standard intrinsics.

THESE SHOULD BE DOCUMENTED. A lot of time can be wasted tripping over stuff
like this. It would also be nice to have a compiler parameter to turn off
non-standard intrinsics.


-- 
           Summary: Non-standard intrinsics should be documented
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: gay at sfu dot ca


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

Reply via email to