[Bug fortran/30865] optional argument passed on to size(...,dim=)

2007-02-26 Thread tkoenig at gcc dot gnu dot org
--- Comment #10 from tkoenig at gcc dot gnu dot org 2007-02-26 21:16 --- Subject: Bug 30865 Author: tkoenig Date: Mon Feb 26 21:16:00 2007 New Revision: 122342 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122342 Log: 2007-02-26 Thomas Koenig <[EMAIL PROTECTED]>

[Bug fortran/30865] optional argument passed on to size(...,dim=)

2007-02-24 Thread patchapp at dberlin dot org
--- Comment #9 from patchapp at dberlin dot org 2007-02-25 02:46 --- Subject: Bug number PR 30865 A patch for this bug has been added to the patch tracker. The mailing list url for the patch is http://gcc.gnu.org/ml/gcc-patches/2007-02/msg01956.html -- http://gcc.gnu.org/bugzilla/s

[Bug fortran/30865] optional argument passed on to size(...,dim=)

2007-02-24 Thread tkoenig at gcc dot gnu dot org
--- Comment #8 from tkoenig at gcc dot gnu dot org 2007-02-24 21:48 --- (In reply to comment #7) > Paul, I tried to apply your patch, but it is rejected. I applied the patch with a recent trunk, which worked (except I got a message that the patch file contained CR/LF). I'm running a r

[Bug fortran/30865] optional argument passed on to size(...,dim=)

2007-02-21 Thread kargl at gcc dot gnu dot org
--- Comment #7 from kargl at gcc dot gnu dot org 2007-02-21 19:02 --- (In reply to comment #4) > Created an attachment (id=13073) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13073&action=view) [edit] > Fix for the problem > Paul, I tried to apply your patch, but it is rejected.

[Bug fortran/30865] optional argument passed on to size(...,dim=)

2007-02-20 Thread pault at gcc dot gnu dot org
--- Comment #6 from pault at gcc dot gnu dot org 2007-02-20 17:25 --- (In reply to comment #5) > (In reply to comment #4) > > Created an attachment (id=13073) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13073&action=view) [edit] > > Fix for the problem > I should have remarked th

[Bug fortran/30865] optional argument passed on to size(...,dim=)

2007-02-20 Thread pault at gcc dot gnu dot org
--- Comment #5 from pault at gcc dot gnu dot org 2007-02-20 14:39 --- (In reply to comment #4) > Created an attachment (id=13073) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13073&action=view) [edit] > Fix for the problem I should have remarked that the patch produces the followi

[Bug fortran/30865] optional argument passed on to size(...,dim=)

2007-02-20 Thread pault at gcc dot gnu dot org
--- Comment #4 from pault at gcc dot gnu dot org 2007-02-20 14:35 --- Created an attachment (id=13073) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13073&action=view) Fix for the problem I will set this regtesting in a few minutes and will post the result. Note, however, that I

[Bug fortran/30865] optional argument passed on to size(...,dim=)

2007-02-20 Thread burnus 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 200

[Bug fortran/30865] optional argument passed on to size(...,dim=)

2007-02-20 Thread burnus at gcc dot gnu dot org
--- Comment #2 from burnus at gcc dot gnu dot org 2007-02-20 08:57 --- > The following is legal but we segfault on execution: > subroutine checkv(ires,a1,opt1) >integer :: a1(:,:) >integer, optional :: opt1 >ires = size (a1, dim=opt1) For those who wonder (as I did) why us

[Bug fortran/30865] optional argument passed on to size(...,dim=)

2007-02-19 Thread pault at gcc dot gnu dot org
-- pault at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirm

[Bug fortran/30865] optional argument passed on to size(...,dim=)

2007-02-19 Thread pault at gcc dot gnu dot org
--- Comment #1 from pault at gcc dot gnu dot org 2007-02-20 05:34 --- Confirmed: The first call to checkv produces checkv (&ires, &parm.10, 0B); With prototype: checkv (ires, a1, opt1), the call to size1 is *ires = _gfortran_size1 (&parm.6, *opt1); with the obvious consequences.