This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/28378] Intrinsic extensions should be deselectable via command line
- From: "jkrahn at nc dot rr dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 May 2008 17:05:55 -0000
- Subject: [Bug fortran/28378] Intrinsic extensions should be deselectable via command line
- References: <bug-28378-6318@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from jkrahn at nc dot rr dot com 2008-05-13 17:05 -------
This is an important to fix. I just ran into problems from this. Gfortran is
supposed to aim for standards conformance, but vendor extensions are not
supposed to break valid code. I think this behavior is a Standards violation,
and really should be a BUG and not just an enhancement.
This is mainly a problem with intrinsic subroutines, because non-intrinsic
functions require an EXTERNAL declaration, and automatically override intrinsic
functions. This is also the main reason the INTRINSIC declaration exists.
Without it, Gfortran should assume that it is an external subroutine, not an
intrinsic. Some F77 compilers make the selection automatic by letting the
linker find the user's subroutine first, and then link to one in a Fortran
extension library if not found.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28378