This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/30372] various intrinsics do not diagnose invalid argument kinds
- From: "sgk at troutmask dot apl dot washington dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Feb 2007 21:02:26 -0000
- Subject: [Bug fortran/30372] various intrinsics do not diagnose invalid argument kinds
- References: <bug-30372-13350@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from sgk at troutmask dot apl dot washington dot edu 2007-02-23 21:02 -------
Subject: Re: various intrinsics do not diagnose invalid argument kinds
On Fri, Feb 23, 2007 at 08:42:03PM -0000, burnus at gcc dot gnu dot org wrote:
>
>
> > various intrinsics do not diagnose invalid argument kinds
> The question is what is the right solution:
> a) Only allow certain kinds
> b) Allowing all kinds and doing the conversion/providing the needed functions.
>
> (a) is in the spirit of Fortran 95, which allowed only the default kind for a
> lot of arguments to intrinsic procedures
> (b) is in the spirit of Fortran 2003 which lifted a lot of those restrictions.
>
> For legacy intrinsics we have the choice, but I favour option (b).
>
I agree that (b) is perhaps the best option. Afterall, we are
moving forward in time so gfortran will chase F2003 (and F2008).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30372