[Bug fortran/23373] Functions returning pointers with pointer argument

2005-09-08 Thread rsandifo at gcc dot gnu dot org
--- Additional Comments From rsandifo at gcc dot gnu dot org 2005-09-08 09:21 --- Patch applied to trunk. -- What|Removed |Added Status|ASSIGNED

[Bug fortran/23373] Functions returning pointers with pointer argument

2005-09-08 Thread cvs-commit at gcc dot gnu dot org
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-09-08 09:20 --- Subject: Bug 23373 CVSROOT:/cvs/gcc Module name:gcc Changes by: [EMAIL PROTECTED] 2005-09-08 09:20:08 Modified files: gcc/fortran: ChangeLog trans-expr.c gcc/t

[Bug fortran/23373] Functions returning pointers with pointer argument

2005-09-07 Thread richard at codesourcery dot com
--- Additional Comments From richard at codesourcery dot com 2005-09-07 17:07 --- Subject: Re: Functions returning pointers with pointer argument "tobi at gcc dot gnu dot org" <[EMAIL PROTECTED]> writes: > I don't have the standard at hand, but both the Intel and the Portland Group > c

[Bug fortran/23373] Functions returning pointers with pointer argument

2005-09-07 Thread tobi at gcc dot gnu dot org
--- Additional Comments From tobi at gcc dot gnu dot org 2005-09-07 17:04 --- I don't have the standard at hand, but both the Intel and the Portland Group compiler accept this. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23373

[Bug fortran/23373] Functions returning pointers with pointer argument

2005-09-07 Thread rsandifo at gcc dot gnu dot org
--- Additional Comments From rsandifo at gcc dot gnu dot org 2005-09-07 16:58 --- Hmm. I supposed I'd better check. Is the following code also valid: program main implicit none real, dimension (:), pointer :: x x => null() x => test () contains function test real, dimens

[Bug fortran/23373] Functions returning pointers with pointer argument

2005-09-07 Thread rsandifo at gcc dot gnu dot org
--- Additional Comments From rsandifo at gcc dot gnu dot org 2005-09-07 15:59 --- Testing a patch. -- What|Removed |Added AssignedTo|unassigned at gcc dot gnu |rsa

[Bug fortran/23373] Functions returning pointers with pointer argument

2005-08-14 Thread tobi at gcc dot gnu dot org
--- Additional Comments From tobi at gcc dot gnu dot org 2005-08-14 15:53 --- An alternative approach to setting up a temporary in the caller would be to have pointer-valued functions use a fake result variable, which only immediately before returning gets assigned to the real result. T

[Bug fortran/23373] Functions returning pointers with pointer argument

2005-08-13 Thread tobi at gcc dot gnu dot org
--- Additional Comments From tobi at gcc dot gnu dot org 2005-08-13 18:51 --- Interestingly, for characters we do the correct copying: [EMAIL PROTECTED]:~/src/tests> cat test2.f90 program ac character*10 a a = "abc" a = f(a) contains function f(b) result(x) character*10

[Bug fortran/23373] Functions returning pointers with pointer argument

2005-08-13 Thread tobi at gcc dot gnu dot org
--- Additional Comments From tobi at gcc dot gnu dot org 2005-08-13 18:43 --- Looks like dependency checking is not strict enough. -- What|Removed |Added CC|

[Bug fortran/23373] Functions returning pointers with pointer argument

2005-08-13 Thread tkoenig at gcc dot gnu dot org
-- What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed||1 Last reconfirmed|-00-00 00:00:00 |2005-08-

[Bug fortran/23373] Functions returning pointers with pointer argument

2005-08-13 Thread tkoenig at gcc dot gnu dot org
--- Additional Comments From tkoenig at gcc dot gnu dot org 2005-08-13 11:47 --- *** Bug 23374 has been marked as a duplicate of this bug. *** -- What|Removed |Added

[Bug fortran/23373] Functions returning pointers with pointer argument

2005-08-13 Thread pault at gcc dot gnu dot org
--- Additional Comments From pault at gcc dot gnu dot org 2005-08-13 09:31 --- (In reply to comment #0) Edmund, > > professional. Is there a workaround or is this a bug which must be fixed? > > Thomas beat you to it! In the mean time, the following works: program Realloc