This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/28890] ICE on write
- From: "pault at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Aug 2006 04:46:39 -0000
- Subject: [Bug fortran/28890] ICE on write
- References: <bug-28890-13167@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pault at gcc dot gnu dot org 2006-08-30 04:46 -------
(In reply to comment #1)
> Confirmed: changing the substring reference to the unambiguous
> write (*,*) i, charr(i:i)
> gets rid of the problem. Apparently, vene though charr is scalar, the
> reference is being interpreted as an array reference.
>
> Paul
>
Cooh! Not only was I full of bulls**t last night but had gone sydlexic too!
charr(i:i) is, of course, no more unambiguous than charr(i), except,
apparently, in the bowels of gfortran!
In fact, using -fdump-parse-tree, I find that charr(i) is being taken as a
character function reference. It must be easy enough to put paid to that...
Paul
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28890