This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/41777] Wrong-code with POINTER-returning GENERIC function
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Oct 2009 15:03:22 -0000
- Subject: [Bug fortran/41777] Wrong-code with POINTER-returning GENERIC function
- References: <bug-41777-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #10 from burnus at gcc dot gnu dot org 2009-10-28 15:03 -------
Created an attachment (id=18926)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18926&action=view)
New, non-reduced test case
Patch in comment 8 + fix in comment 9 regtests and fixes:
a) The fully reduced test case of comment 4
b) The partially reduced test case of comment 1
It does not fix the attached test case, which is a slightly modified version of
comment 1 - and which still needs FoX to be installed and input.xml of
attachment 18846 of PR 41772. The loc lines show:
loc thisnode: 6945920
loc item : 140736865394032
And the second one is clearly wrong. If one does not nest the arguments, but
saves "getElementsByTagname" as "np" and uses it in turn for "item()",
everything works as expected.
(Needless to say that the full program of comment 0 still does not work.)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41777