[Bug fortran/32881] PURE attribute escapes from contained procedure

2007-08-18 Thread pault at gcc dot gnu dot org
--- Comment #7 from pault at gcc dot gnu dot org 2007-08-18 11:22 --- Fixed on trunk. Paul -- pault at gcc dot gnu dot org changed: What|Removed |Added Statu

[Bug fortran/32881] PURE attribute escapes from contained procedure

2007-08-18 Thread pault at gcc dot gnu dot org
--- Comment #6 from pault at gcc dot gnu dot org 2007-08-18 10:48 --- Subject: Bug 32881 Author: pault Date: Sat Aug 18 10:47:58 2007 New Revision: 127611 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127611 Log: 2007-08-18 Paul Thomas <[EMAIL PROTECTED]> PR fortran/

[Bug fortran/32881] PURE attribute escapes from contained procedure

2007-08-17 Thread patchapp at dberlin dot org
--- Comment #5 from patchapp at dberlin dot org 2007-08-17 15:10 --- Subject: Bug number PR32881 A patch for this bug has been added to the patch tracker. The mailing list url for the patch is http://gcc.gnu.org/ml/gcc-patches/2007-08/msg01078.html -- http://gcc.gnu.org/bugzilla/sh

[Bug fortran/32881] PURE attribute escapes from contained procedure

2007-08-14 Thread pault at gcc dot gnu dot org
--- Comment #4 from pault at gcc dot gnu dot org 2007-08-14 16:44 --- This fixes the problem. However there are some odd regressions that do not seem to have anything to do with it but which must be investigated. Paul Index: gcc/fortran/expr.c =

[Bug fortran/32881] PURE attribute escapes from contained procedure

2007-07-29 Thread dfranke at gcc dot gnu dot org
--- Comment #3 from dfranke at gcc dot gnu dot org 2007-07-29 13:01 --- This is accepted: $> cat pr32881.f90 program foo integer :: i = 42 print *, bar() contains pure integer function bar () bar = i end function end program -- dfranke at gcc dot gnu dot org changed:

[Bug fortran/32881] PURE attribute escapes from contained procedure

2007-07-24 Thread burnus at gcc dot gnu dot org
--- Comment #2 from burnus at gcc dot gnu dot org 2007-07-24 20:53 --- Of cause it did not regtest :-( (fails for impure_assignment_2.f90, l.58, were "B" is a host-associated variable; thus gfc_pure(NULL) seems to be ok.) The problem is actually that gfc_check_pointer_assign is called t

[Bug fortran/32881] PURE attribute escapes from contained procedure

2007-07-24 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2007-07-24 17:22 --- Confirmed. The problem is that gfc_pure(NULL) is called and thus sym = gfc_current_ns->proc_name; is used as procedure symbol, which is "bar" and not "foo". The following patch fixes this, but I have not regteste