[Bug fortran/41777] Wrong-code with POINTER-returning GENERIC function

burnus at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Oct 28 15:03:00 GMT 2009



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



More information about the Gcc-bugs mailing list