public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/41777]  New: wrong-code shown with EXCITING
@ 2009-10-21  8:41 burnus at gcc dot gnu dot org
  2009-10-21  9:11 ` [Bug fortran/41777] " burnus at gcc dot gnu dot org
                   ` (18 more replies)
  0 siblings, 19 replies; 20+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-10-21  8:41 UTC (permalink / raw)
  To: gcc-bugs

Non-reduced test case.

This is with http://static.exciting-code.org/exciting.hydrogen.9.10.tar.gz
Untar, cp build/platform/make.inc.g95 build/platform/make.inc.gfortran and
adapt that file; run 'make'.

Note: Due to PR 41772, one needs to use the PGI loop in
src/FoX/fsys/fox_m_fsys_array_str.F90's "str_vs"
rather than TRANSFER.

cd examples/Al; ../../build/serial/exciting

Expected: Runs through successfully (as with g95, xlf90, ifort),
Actual result: Fails when FoX tries to remove a node ("NOT_FOUND_ERR").

As in PR 41772, I will try to get a small testcase. This time, valgrind is
silent which does not help :-(


-- 
           Summary: wrong-code shown with EXCITING
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org
 BugsThisDependsOn: 41772


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41777


^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug fortran/41777] wrong-code shown with EXCITING
  2009-10-21  8:41 [Bug fortran/41777] New: wrong-code shown with EXCITING burnus at gcc dot gnu dot org
@ 2009-10-21  9:11 ` burnus at gcc dot gnu dot org
  2009-10-21  9:12 ` burnus at gcc dot gnu dot org
                   ` (17 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-10-21  9:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from burnus at gcc dot gnu dot org  2009-10-21 09:10 -------
Created an attachment (id=18851)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18851&action=view)
Slightly reduced test case - needs now only FoX

Reduced test case -- still pretty large, but now only depends on FoX. Use
similarly to PR 41772:

wget http://www.uszla.me.uk/FoX/source/FoX-4.0.4.tar.gz
tar xfz FoX-4.0.4.tar.gz
cd FoX-4.0.4 && ./configure FC=gfortran && make -j4

gfortran -Iobjs/finclude fox.f90 objs/lib/libFoX_{dom,utils,sax,common,fsys}.a
./a.out

In order to see better what goes wrong, patch dom/m_dom_dom.F90's removeChild
by adding the PRINT statements:

    do i = 1, size(arg%childNodes%nodes)
      print *, 'removeChild: Walking list, i = ', i
      if (associated(arg%childNodes%nodes(i)%this, oldChild)) then
        print *, 'removeChild: Walking list, fount it, i_t = ', i_t

The gfortran output is then:

 removeChild: Walking list, i =            1
 [...]
 removeChild: Walking list, i =            9
NOT_FOUND_ERR

While g95/NAG f95 have:
 removeChild: Walking list, i =  1
 [...]
 removeChild: Walking list, fount it, i_t =  4
 [...]
  removeChild: Walking list, i =  9
FoX_NODE_IS_NULL

(Afterwards, all core dump. The result that it = 4 is found, can also be seen
with the full program, where no segfault occurs.)

The needed input.xml can be found in attachment 18846 of PR 41772


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41777


^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug fortran/41777] wrong-code shown with EXCITING
  2009-10-21  8:41 [Bug fortran/41777] New: wrong-code shown with EXCITING burnus at gcc dot gnu dot org
  2009-10-21  9:11 ` [Bug fortran/41777] " burnus at gcc dot gnu dot org
@ 2009-10-21  9:12 ` burnus at gcc dot gnu dot org
  2009-10-21  9:22 ` [Bug fortran/41777] wrong-code with FoX, related to ASSOCIATE( Ptr1, Ptr2) burnus at gcc dot gnu dot org
                   ` (16 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-10-21  9:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from burnus at gcc dot gnu dot org  2009-10-21 09:12 -------
(In reply to comment #1)
> wget http://www.uszla.me.uk/FoX/source/FoX-4.0.4.tar.gz
> cd FoX-4.0.4 && ./configure FC=gfortran && make -j4

I forgot to re-mention that one needs to patch fsys/fox_m_fsys_array_str.F90's
"str_vs" -> comment 0 (or PR 41772 needs to be fixed). Otherwise, it crashes
before.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41777


^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug fortran/41777] wrong-code with FoX, related to ASSOCIATE( Ptr1, Ptr2)
  2009-10-21  8:41 [Bug fortran/41777] New: wrong-code shown with EXCITING burnus at gcc dot gnu dot org
  2009-10-21  9:11 ` [Bug fortran/41777] " burnus at gcc dot gnu dot org
  2009-10-21  9:12 ` burnus at gcc dot gnu dot org
@ 2009-10-21  9:22 ` burnus at gcc dot gnu dot org
  2009-10-21 12:09 ` [Bug fortran/41777] Wrong-code with POINTER-returning GENERIC function burnus at gcc dot gnu dot org
                   ` (15 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-10-21  9:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from burnus at gcc dot gnu dot org  2009-10-21 09:22 -------
No regression, segfaults immediately with 4.2; shows the same behaviour for
4.3, 4.4 and 4.5.


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |4.2.1 4.3.3 4.4.2 4.5.0
            Summary|wrong-code shown with       |wrong-code with FoX, related
                   |EXCITING                    |to ASSOCIATE( Ptr1, Ptr2)


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41777


^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug fortran/41777] Wrong-code with POINTER-returning GENERIC function
  2009-10-21  8:41 [Bug fortran/41777] New: wrong-code shown with EXCITING burnus at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2009-10-21  9:22 ` [Bug fortran/41777] wrong-code with FoX, related to ASSOCIATE( Ptr1, Ptr2) burnus at gcc dot gnu dot org
@ 2009-10-21 12:09 ` burnus at gcc dot gnu dot org
  2009-10-25 14:33 ` burnus at gcc dot gnu dot org
                   ` (14 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-10-21 12:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from burnus at gcc dot gnu dot org  2009-10-21 12:08 -------
Reduced test case. The problem is the GENERIC INTERFACE. For some reason,  the
result attribute is not properly propagated. This leads to the bogus error:


print *, associated(a,f(a)) ! Valid, but error
                      1
Error: 'target' argument of 'associated' intrinsic at (1) must be a POINTER or
a TARGET


and to the wrong code by printing "T F" instead of "T T".


module m
type t2
 integer :: i
end type t2
interface f
 module procedure f2
end interface f
contains
function f2(a)
  type(t2), pointer :: f2,a
  f2 => a
end function f2
end module m

use m
implicit none
type(t2), pointer :: a
allocate(a)
!print *, associated(a,f(a)) ! Valid, but error
call cmpPtr(a,f2(a))         ! "T" which is OK
call cmpPtr(a,f(a))          ! "F" which is wrong
contains
  subroutine cmpPtr(a,b)
    type(t2), pointer :: a,b
    print *, associated(a,b)
  end subroutine cmpPtr
end


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
            Summary|wrong-code with FoX, related|Wrong-code with POINTER-
                   |to ASSOCIATE( Ptr1, Ptr2)   |returning GENERIC function


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41777


^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug fortran/41777] Wrong-code with POINTER-returning GENERIC function
  2009-10-21  8:41 [Bug fortran/41777] New: wrong-code shown with EXCITING burnus at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2009-10-21 12:09 ` [Bug fortran/41777] Wrong-code with POINTER-returning GENERIC function burnus at gcc dot gnu dot org
@ 2009-10-25 14:33 ` burnus at gcc dot gnu dot org
  2009-10-25 14:44 ` burnus at gcc dot gnu dot org
                   ` (13 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-10-25 14:33 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from burnus at gcc dot gnu dot org  2009-10-25 14:33 -------
  print *, associated(a,f(a)) ! Valid, but error

If one steps in the debugger, one see that the TARGET= argument of associate
but "f", i.e. target->expr_type == EXPR_FUNCTION, target->symtree->n.sym->name
"f" and target->value.function->esym->name == "f".

Patch - not regtested, but seems to work.

--- resolve.c   (Revision 153537)
+++ resolve.c
@@ -1867,6 +1867,11 @@ resolve_generic_f0 (gfc_expr *expr, gfc_
        {  
          expr->value.function.name = s->name;
          expr->value.function.esym = s;
+         /* Copy attributes such that checking attr.pointer works, but keep
+            attr.generic as we do not (want to) copy all the other properties
+            of the specific.  */
+         expr->symtree->n.sym->attr = s->attr;
+         expr->symtree->n.sym->attr.generic = 1;
          if (s->ts.type != BT_UNKNOWN)
            expr->ts = s->ts;


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |burnus at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-10-25 14:33:13
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41777


^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug fortran/41777] Wrong-code with POINTER-returning GENERIC function
  2009-10-21  8:41 [Bug fortran/41777] New: wrong-code shown with EXCITING burnus at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2009-10-25 14:33 ` burnus at gcc dot gnu dot org
@ 2009-10-25 14:44 ` burnus at gcc dot gnu dot org
  2009-10-25 18:34 ` dominiq at lps dot ens dot fr
                   ` (12 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-10-25 14:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from burnus at gcc dot gnu dot org  2009-10-25 14:44 -------
TODO: Check whether the patch does the right thing. One overrides the symbol
settings of the generic, which should be harmless, but might lead to problems
if one uses different specifics which share the same "sym" pointer. On the
other hand, all the code assumes that accessing "symtree->n.sym->attr" gives
the correct result for exec_type == EXEC_FUNCTION.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41777


^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug fortran/41777] Wrong-code with POINTER-returning GENERIC function
  2009-10-21  8:41 [Bug fortran/41777] New: wrong-code shown with EXCITING burnus at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2009-10-25 14:44 ` burnus at gcc dot gnu dot org
@ 2009-10-25 18:34 ` dominiq at lps dot ens dot fr
  2009-10-28 10:18 ` burnus at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: dominiq at lps dot ens dot fr @ 2009-10-25 18:34 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from dominiq at lps dot ens dot fr  2009-10-25 18:34 -------
With the patch in comment #5 I got two extra errors for my tests:

modification of pr30793 (comment #7)

pr30793_red.f90:151.10:

  mshp => msh_(quality)
          1
Error: Function 'msh_' at (1) has no IMPLICIT type

and the pr40440, both the file requiring iso_varying_string.f95 and the one
including it:

pr40440.f90:69.42:

    call ifile_append_from_string (ifile, var_str (trim (char)))
                                          1
Error: Function 'var_str' at (1) has no IMPLICIT type
pr40440.f90:116.62:

  use ifiles, only: line_p, line_init, line_get_string_advance
                                                              1
Fatal Error: Can't open module file 'ifiles.mod' for reading at (1): No such
file or directory


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41777


^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug fortran/41777] Wrong-code with POINTER-returning GENERIC function
  2009-10-21  8:41 [Bug fortran/41777] New: wrong-code shown with EXCITING burnus at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2009-10-25 18:34 ` dominiq at lps dot ens dot fr
@ 2009-10-28 10:18 ` burnus at gcc dot gnu dot org
  2009-10-28 10:38 ` burnus at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-10-28 10:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from burnus at gcc dot gnu dot org  2009-10-28 10:17 -------
Created an attachment (id=18925)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18925&action=view)
Better patch

Better fix. I think there are more of such problems around, but I won't fix
them now :-)


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #18851|0                           |1
        is obsolete|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41777


^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug fortran/41777] Wrong-code with POINTER-returning GENERIC function
  2009-10-21  8:41 [Bug fortran/41777] New: wrong-code shown with EXCITING burnus at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2009-10-28 10:18 ` burnus at gcc dot gnu dot org
@ 2009-10-28 10:38 ` burnus at gcc dot gnu dot org
  2009-10-28 15:03 ` burnus at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-10-28 10:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from burnus at gcc dot gnu dot org  2009-10-28 10:38 -------
> +    attr1 = gfc_expr_attr (target);

s/target/pointer/

I am now regtesting and will re-read and submit the patch afterwards.

(Writing patches in the early morning jet-lagged via a very slow internet
connection does not work, cf. comment 5. But writing - newly jet-lagged - a
patch without regtesting via a fast connection does not work either, cf.
above.)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41777


^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug fortran/41777] Wrong-code with POINTER-returning GENERIC function
  2009-10-21  8:41 [Bug fortran/41777] New: wrong-code shown with EXCITING burnus at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2009-10-28 10:38 ` burnus at gcc dot gnu dot org
@ 2009-10-28 15:03 ` burnus at gcc dot gnu dot org
  2009-10-28 15:47 ` burnus at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-10-28 15:03 UTC (permalink / raw)
  To: gcc-bugs



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


^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug fortran/41777] Wrong-code with POINTER-returning GENERIC function
  2009-10-21  8:41 [Bug fortran/41777] New: wrong-code shown with EXCITING burnus at gcc dot gnu dot org
                   ` (9 preceding siblings ...)
  2009-10-28 15:03 ` burnus at gcc dot gnu dot org
@ 2009-10-28 15:47 ` burnus at gcc dot gnu dot org
  2009-10-28 16:27 ` dominiq at lps dot ens dot fr
                   ` (7 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-10-28 15:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from burnus at gcc dot gnu dot org  2009-10-28 15:47 -------
Related problem:
  print *, loc(f2(a)) ! OK
  print *, loc(f (a)) ! Error "must be a variable"
The second line uses a generic function with "f2" being the specific one.

The problem is that gfc_check_loc calls check_variable, which checks whether
function name = result name. I think this check is bogus. I think the purpose
is to allow:
  function_name = value   ! in "function function_name" !
but for
  value = function_name(bar)  ! or LOC(function_name(bar))
it does not matter whether sym == sym->result.

On the other hand, if one is outside of "function function_name"
  func(function_name)
is something different (= function and not result) and there it does not matter
whether sym == sym->result or not.

For the the example above, the patch below fixes it, but see caveat above.

Index: check.c
===================================================================
--- check.c     (revision 153645)
+++ check.c     (working copy)
@@ -288,7 +288,10 @@ variable_check (gfc_expr *e, int n)
   if ((e->expr_type == EXPR_VARIABLE
        && e->symtree->n.sym->attr.flavor != FL_PARAMETER)
       || (e->expr_type == EXPR_FUNCTION
-         && e->symtree->n.sym->result == e->symtree->n.sym))
+         && ((!e->value.function.esym
+              && e->value.function.esym->result == e->value.function.esym)
+             || (e->value.function.esym
+                 && e->symtree->n.sym->result == e->symtree->n.sym))))
     return SUCCESS;

   if (e->expr_type == EXPR_VARIABLE


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41777


^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug fortran/41777] Wrong-code with POINTER-returning GENERIC function
  2009-10-21  8:41 [Bug fortran/41777] New: wrong-code shown with EXCITING burnus at gcc dot gnu dot org
                   ` (10 preceding siblings ...)
  2009-10-28 15:47 ` burnus at gcc dot gnu dot org
@ 2009-10-28 16:27 ` dominiq at lps dot ens dot fr
  2009-10-29 15:25 ` burnus at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: dominiq at lps dot ens dot fr @ 2009-10-28 16:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from dominiq at lps dot ens dot fr  2009-10-28 16:27 -------
> +         && ((!e->value.function.esym

is the ! at the right place? If e->value.function.esym == 0, would not
e->value.function.esym->result == e->value.function.esym
gives a bus error/segmentation fault?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41777


^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug fortran/41777] Wrong-code with POINTER-returning GENERIC function
  2009-10-21  8:41 [Bug fortran/41777] New: wrong-code shown with EXCITING burnus at gcc dot gnu dot org
                   ` (11 preceding siblings ...)
  2009-10-28 16:27 ` dominiq at lps dot ens dot fr
@ 2009-10-29 15:25 ` burnus at gcc dot gnu dot org
  2009-10-29 15:28 ` burnus at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-10-29 15:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #13 from burnus at gcc dot gnu dot org  2009-10-29 15:24 -------
Subject: Bug 41777

Author: burnus
Date: Thu Oct 29 15:24:38 2009
New Revision: 153706

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=153706
Log:
2009-10-29  Tobias Burnus  <burnus@net-b.de>

        PR fortran/41777
        * trans-expr.c
        * (gfc_conv_procedure_call,gfc_conv_expr_reference):
        Use for generic EXPR_FUNCTION the attributes of the specific
        function.

2009-10-29  Tobias Burnus  <burnus@net-b.de>

        PR fortran/41777
        gfortran.dg/associated_target_3.f90: New testcase.


Added:
    trunk/gcc/testsuite/gfortran.dg/associated_target_3.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/check.c
    trunk/gcc/fortran/trans-expr.c
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41777


^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug fortran/41777] Wrong-code with POINTER-returning GENERIC function
  2009-10-21  8:41 [Bug fortran/41777] New: wrong-code shown with EXCITING burnus at gcc dot gnu dot org
                   ` (12 preceding siblings ...)
  2009-10-29 15:25 ` burnus at gcc dot gnu dot org
@ 2009-10-29 15:28 ` burnus at gcc dot gnu dot org
  2009-10-29 16:44 ` burnus at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-10-29 15:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #14 from burnus at gcc dot gnu dot org  2009-10-29 15:28 -------
Committed attachment 18925. As written in comment 10 (and later), that patch
fixes the reduced test case from comment 1 but not the original one (comment
0), nor the LOC issue nor the half-working new example of comment 10. [When
debugging, I also found PR 41869.]


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41777


^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug fortran/41777] Wrong-code with POINTER-returning GENERIC function
  2009-10-21  8:41 [Bug fortran/41777] New: wrong-code shown with EXCITING burnus at gcc dot gnu dot org
                   ` (13 preceding siblings ...)
  2009-10-29 15:28 ` burnus at gcc dot gnu dot org
@ 2009-10-29 16:44 ` burnus at gcc dot gnu dot org
  2009-10-30 15:18 ` burnus at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-10-29 16:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #15 from burnus at gcc dot gnu dot org  2009-10-29 16:44 -------
(In reply to comment #14)
> As written in comment 10 (and later), that patch
> fixes the reduced test case from comment 1 but not the original one (comment
> 0)

Actually, it seems to work now correctly with the current trunk - I will fix
comment 10 and the LOC issue, however.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41777


^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug fortran/41777] Wrong-code with POINTER-returning GENERIC function
  2009-10-21  8:41 [Bug fortran/41777] New: wrong-code shown with EXCITING burnus at gcc dot gnu dot org
                   ` (14 preceding siblings ...)
  2009-10-29 16:44 ` burnus at gcc dot gnu dot org
@ 2009-10-30 15:18 ` burnus at gcc dot gnu dot org
  2009-11-27 14:28 ` mrestelli at gmail dot com
                   ` (2 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-10-30 15:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #16 from burnus at gcc dot gnu dot org  2009-10-30 15:18 -------
Subject: Bug 41777

Author: burnus
Date: Fri Oct 30 15:18:09 2009
New Revision: 153756

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=153756
Log:
2009-10-30  Tobias Burnus  <burnus@net-b.de>

        PR fortran/41777
        * trans-expr.c
        * (gfc_conv_procedure_call,gfc_conv_expr_reference):
        Use for generic EXPR_FUNCTION the attributes of the specific
        function.

2009-10-30  Tobias Burnus  <burnus@net-b.de>

        PR fortran/41777
        gfortran.dg/associated_target_3.f90: New testcase.


Added:
    branches/gcc-4_4-branch/gcc/testsuite/gfortran.dg/associated_target_3.f90
Modified:
    branches/gcc-4_4-branch/gcc/fortran/ChangeLog
    branches/gcc-4_4-branch/gcc/fortran/check.c
    branches/gcc-4_4-branch/gcc/fortran/trans-expr.c
    branches/gcc-4_4-branch/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41777


^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug fortran/41777] Wrong-code with POINTER-returning GENERIC function
  2009-10-21  8:41 [Bug fortran/41777] New: wrong-code shown with EXCITING burnus at gcc dot gnu dot org
                   ` (15 preceding siblings ...)
  2009-10-30 15:18 ` burnus at gcc dot gnu dot org
@ 2009-11-27 14:28 ` mrestelli at gmail dot com
  2010-02-02 10:00 ` burnus at gcc dot gnu dot org
  2010-02-02 10:00 ` burnus at gcc dot gnu dot org
  18 siblings, 0 replies; 20+ messages in thread
From: mrestelli at gmail dot com @ 2009-11-27 14:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #17 from mrestelli at gmail dot com  2009-11-27 14:28 -------
*** Bug 40850 has been marked as a duplicate of this bug. ***


-- 

mrestelli at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mrestelli at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41777


^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug fortran/41777] Wrong-code with POINTER-returning GENERIC function
  2009-10-21  8:41 [Bug fortran/41777] New: wrong-code shown with EXCITING burnus at gcc dot gnu dot org
                   ` (16 preceding siblings ...)
  2009-11-27 14:28 ` mrestelli at gmail dot com
@ 2010-02-02 10:00 ` burnus at gcc dot gnu dot org
  2010-02-02 10:00 ` burnus at gcc dot gnu dot org
  18 siblings, 0 replies; 20+ messages in thread
From: burnus at gcc dot gnu dot org @ 2010-02-02 10:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #18 from burnus at gcc dot gnu dot org  2010-02-02 10:00 -------
CLOSE as FIXED. 

Regarding comment 10: See newly opened PR 42934.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41777


^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug fortran/41777] Wrong-code with POINTER-returning GENERIC function
  2009-10-21  8:41 [Bug fortran/41777] New: wrong-code shown with EXCITING burnus at gcc dot gnu dot org
                   ` (17 preceding siblings ...)
  2010-02-02 10:00 ` burnus at gcc dot gnu dot org
@ 2010-02-02 10:00 ` burnus at gcc dot gnu dot org
  18 siblings, 0 replies; 20+ messages in thread
From: burnus at gcc dot gnu dot org @ 2010-02-02 10:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #19 from burnus at gcc dot gnu dot org  2010-02-02 10:00 -------
Really close the PR.


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41777


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2010-02-02 10:00 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-21  8:41 [Bug fortran/41777] New: wrong-code shown with EXCITING burnus at gcc dot gnu dot org
2009-10-21  9:11 ` [Bug fortran/41777] " burnus at gcc dot gnu dot org
2009-10-21  9:12 ` burnus at gcc dot gnu dot org
2009-10-21  9:22 ` [Bug fortran/41777] wrong-code with FoX, related to ASSOCIATE( Ptr1, Ptr2) burnus at gcc dot gnu dot org
2009-10-21 12:09 ` [Bug fortran/41777] Wrong-code with POINTER-returning GENERIC function burnus at gcc dot gnu dot org
2009-10-25 14:33 ` burnus at gcc dot gnu dot org
2009-10-25 14:44 ` burnus at gcc dot gnu dot org
2009-10-25 18:34 ` dominiq at lps dot ens dot fr
2009-10-28 10:18 ` burnus at gcc dot gnu dot org
2009-10-28 10:38 ` burnus at gcc dot gnu dot org
2009-10-28 15:03 ` burnus at gcc dot gnu dot org
2009-10-28 15:47 ` burnus at gcc dot gnu dot org
2009-10-28 16:27 ` dominiq at lps dot ens dot fr
2009-10-29 15:25 ` burnus at gcc dot gnu dot org
2009-10-29 15:28 ` burnus at gcc dot gnu dot org
2009-10-29 16:44 ` burnus at gcc dot gnu dot org
2009-10-30 15:18 ` burnus at gcc dot gnu dot org
2009-11-27 14:28 ` mrestelli at gmail dot com
2010-02-02 10:00 ` burnus at gcc dot gnu dot org
2010-02-02 10:00 ` burnus at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).