This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/30865] optional argument passed on to size(...,dim=)
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Feb 2007 13:16:10 -0000
- Subject: [Bug fortran/30865] optional argument passed on to size(...,dim=)
- References: <bug-30865-10391@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from burnus at gcc dot gnu dot org 2007-02-20 13:16 -------
(In reply to comment #2)
> For those who wonder (as I did) why using an optional argument is legal:
> It is only used as actual argument corresponding to an optional dummy
> argument. (cf. 12.4.1.6 in the Fortran 2003 standard).
And on the fact that the optional argument does not change the rank.
This PR is seemingly based on the following c.l.fortran thread:
http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/1e7a4db9d998955a
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30865