: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: james.s.spencer at gmail dot com
Target Milestone: ---
Created attachment 41353
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41353&action=edit
test case
Rewind does not appear to work correctly if end of f
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: james.s.spencer at gmail dot com
Target Milestone: ---
I think if a pointer, p, is C_NULL_PTR then c_associated(p) should always
return false. However, I do not see this with gfortran
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82869
--- Comment #2 from james.s.spencer at gmail dot com ---
(In reply to kargl from comment #1)
> (In reply to james.s.spencer from comment #0)
> > I think if a pointer, p, is C_NULL_PTR then c_associated(p) should always
> > return
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82869
--- Comment #11 from james.s.spencer at gmail dot com ---
(In reply to Janne Blomqvist from comment #10)
> Fixed now on the gcc-7 branch as well. Thanks James for reporting, and
> Martin for bisecting!
Thanks for the quick fix!
Assignee: unassigned at gcc dot gnu.org
Reporter: james.s.spencer at gmail dot com
Created attachment 31818
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31818&action=edit
Tarball containing example code, tree produced by gfortran 4.8.2 and Makefile.
(Complete modu