This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/25669] LBOUND (array), as actual arg,causes fatal error.
- From: "paul dot richard dot thomas at cea dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Jan 2006 14:25:32 -0000
- Subject: [Bug fortran/25669] LBOUND (array), as actual arg,causes fatal error.
- References: <bug-25669-9236@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from paul dot richard dot thomas at cea dot fr 2006-01-04 14:25 -------
(In reply to comment #2)
> Actually assumed sized is not the full issue, see PR 18003.
You are right about this. Turn the declaration for a into an explicit
full-array, rather than assumed size.
I have seen, somewhere, a check for the rank of inquiry intrinsics, that uses
the rank calculated from the arguments, if rank 0 is found for the function. I
believe that the use of the scalarizer for intrinsic bounds is screwing itself
up when tricked into treating the expression as scalarizable. This is
confirmed by the work-around of taking the lbound out of the actual array list
for bar().
I have taken "assumed size" out of the summary line.
--
paul dot richard dot thomas at cea dot fr changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|LBOUND (assumed-size-array),|LBOUND (array), as actual
|as actual arg,causes fatal |arg,causes fatal error.
|error. |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25669