This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/28890] ICE on write



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]