public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/44556]  New: incorrect error:  Stat-variable at (1) shall not be DEALLOCATEd within the same DEALLOCATE statement
@ 2010-06-16  9:52 jonathan dot hogg at stfc dot ac dot uk
  2010-06-16 12:21 ` [Bug fortran/44556] [4.5/4.6 Regression] " burnus at gcc dot gnu dot org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: jonathan dot hogg at stfc dot ac dot uk @ 2010-06-16  9:52 UTC (permalink / raw)
  To: gcc-bugs

Attempting to compile the following code:

module dealloc_test
   implicit none

   type test_type
      integer, dimension(:), allocatable :: array
      integer :: st
   end type test_type
contains

   subroutine test
      type(test_type) :: foo

      deallocate(foo%array, stat=foo%st)

   end subroutine test
end module dealloc_test

generates the following result:
[jhogg@jhogg] ~/src/ma77_ic$ gfortran-4.5 -c temp.f90 
temp.f90:13.33:

      deallocate(foo%array, stat=foo%st)
                                 1
Error: Stat-variable at (1) shall not be DEALLOCATEd within the same DEALLOCATE
statement

This seems to be legal code to me, and is used throughout our Fortran library.

Version information (debian expt package):
[jhogg@jhogg] ~/src/ma77_ic$ gfortran-4.5 -v
Using built-in specs.
COLLECT_GCC=gfortran-4.5
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.5.1/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.5.0-5'
--with-bugurl=file:///usr/share/doc/gcc-4.5/README.Bugs
--enable-languages=c,c++,java,fortran,objc,obj-c++ --prefix=/usr
--enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.5 --program-suffix=-4.5 --enable-nls
--enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes
--enable-plugin --enable-gold --with-plugin-ld=ld.gold --disable-browser-plugin
--enable-java-awt=gtk --enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.5/jre --enable-java-home
--with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.5
--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.5
--with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar
--enable-objc-gc --with-arch-32=i486 --with-tune=generic --enable-checking=yes
--build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.5.1 20100602 (prerelease) (Debian 4.5.0-5)

Thanks,
Jonathan


-- 
           Summary: incorrect error:  Stat-variable at (1) shall not be
                    DEALLOCATEd within the same DEALLOCATE statement
           Product: gcc
           Version: 4.5.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jonathan dot hogg at stfc dot ac dot uk
  GCC host triplet: x86_64-linux-gnu
GCC target triplet: x86_64-linux-gnu


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


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

* [Bug fortran/44556] [4.5/4.6 Regression] incorrect error:  Stat-variable at (1) shall not be DEALLOCATEd within the same DEALLOCATE statement
  2010-06-16  9:52 [Bug fortran/44556] New: incorrect error: Stat-variable at (1) shall not be DEALLOCATEd within the same DEALLOCATE statement jonathan dot hogg at stfc dot ac dot uk
@ 2010-06-16 12:21 ` burnus at gcc dot gnu dot org
  2010-06-16 14:34 ` kargl at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: burnus at gcc dot gnu dot org @ 2010-06-16 12:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from burnus at gcc dot gnu dot org  2010-06-16 12:21 -------
The following check is to simplistic, it does not work for structures but only
for simple object names. - with structures, it gets more complicated as also
comparing the name of the last part-ref won't work - but one needs to walk
through the whole structure references. 


Alternatively, one disables the check "if (stat->symtree->n.sym->ts.type !=
BT_INTEGER)" - that's maybe too simple, but it would fix this problem. (Maybe
that's _the_ solution for the 4.5 branch?)

[When using stat=foo%array(1), NAG, pgf95, and g95 do not print a
warning/error, but ifort, openf95, pathf95, sunf95, and Cray print an error.]


In resolve.c's resolve_allocate_deallocate:

      for (p = code->ext.alloc.list; p; p = p->next)
        if (p->expr->symtree->n.sym->name == stat->symtree->n.sym->name)
          gfc_error ("Stat-variable at %L shall not be %sd within "
                     "the same %s statement", &stat->where, fcn, fcn);


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kargl at gcc dot gnu dot org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   GCC host triplet|x86_64-linux-gnu            |
 GCC target triplet|x86_64-linux-gnu            |
           Keywords|                            |rejects-valid
      Known to fail|                            |4.5.1 4.6.0
      Known to work|                            |4.4.0
   Last reconfirmed|0000-00-00 00:00:00         |2010-06-16 12:21:06
               date|                            |
            Summary|incorrect error:  Stat-     |[4.5/4.6 Regression]
                   |variable at (1) shall not be|incorrect error:  Stat-
                   |DEALLOCATEd within the same |variable at (1) shall not be
                   |DEALLOCATE statement        |DEALLOCATEd within the same
                   |                            |DEALLOCATE statement
   Target Milestone|---                         |4.5.1


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


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

* [Bug fortran/44556] [4.5/4.6 Regression] incorrect error:  Stat-variable at (1) shall not be DEALLOCATEd within the same DEALLOCATE statement
  2010-06-16  9:52 [Bug fortran/44556] New: incorrect error: Stat-variable at (1) shall not be DEALLOCATEd within the same DEALLOCATE statement jonathan dot hogg at stfc dot ac dot uk
  2010-06-16 12:21 ` [Bug fortran/44556] [4.5/4.6 Regression] " burnus at gcc dot gnu dot org
@ 2010-06-16 14:34 ` kargl at gcc dot gnu dot org
  2010-06-16 17:11 ` sgk at troutmask dot apl dot washington dot edu
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: kargl at gcc dot gnu dot org @ 2010-06-16 14:34 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from kargl at gcc dot gnu dot org  2010-06-16 14:34 -------
(In reply to comment #1)
> The following check is to simplistic, it does not work for structures but only
> for simple object names. - with structures, it gets more complicated as also
> comparing the name of the last part-ref won't work - but one needs to walk
> through the whole structure references.

Not sure how I got added to the CC list.  Remove myself.


-- 

kargl at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|kargl at gcc dot gnu dot org|


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


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

* [Bug fortran/44556] [4.5/4.6 Regression] incorrect error:  Stat-variable at (1) shall not be DEALLOCATEd within the same DEALLOCATE statement
  2010-06-16  9:52 [Bug fortran/44556] New: incorrect error: Stat-variable at (1) shall not be DEALLOCATEd within the same DEALLOCATE statement jonathan dot hogg at stfc dot ac dot uk
  2010-06-16 12:21 ` [Bug fortran/44556] [4.5/4.6 Regression] " burnus at gcc dot gnu dot org
  2010-06-16 14:34 ` kargl at gcc dot gnu dot org
@ 2010-06-16 17:11 ` sgk at troutmask dot apl dot washington dot edu
  2010-06-17 10:25 ` burnus at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: sgk at troutmask dot apl dot washington dot edu @ 2010-06-16 17:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from sgk at troutmask dot apl dot washington dot edu  2010-06-16 17:10 -------
Subject: Re:  [4.5/4.6 Regression] incorrect error:  Stat-variable at (1) shall
not be DEALLOCATEd within the same DEALLOCATE statement

On Wed, Jun 16, 2010 at 02:34:34PM -0000, kargl at gcc dot gnu dot org wrote:
> 
> ------- Comment #2 from kargl at gcc dot gnu dot org  2010-06-16 14:34 -------
> (In reply to comment #1)
> > The following check is to simplistic, it does not work for structures but only
> > for simple object names. - with structures, it gets more complicated as also
> > comparing the name of the last part-ref won't work - but one needs to walk
> > through the whole structure references.
> 
> Not sure how I got added to the CC list.  Remove myself.
> 

BTW, this won't work either.

program oh_my

   type a
      integer, allocatable :: b(:), d(:)
      character(len=80) :: err
      integer :: src
   end type a

   integer j
   type(a) :: c

   c%err = 'ok'

   allocate(c%b(2), errmsg=c%err, stat=j)

   deallocate(c%b, errmsg=c%err, stat=j)

end program oh_my

gfortran does not walk the components of a derived type.


-- 


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


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

* [Bug fortran/44556] [4.5/4.6 Regression] incorrect error:  Stat-variable at (1) shall not be DEALLOCATEd within the same DEALLOCATE statement
  2010-06-16  9:52 [Bug fortran/44556] New: incorrect error: Stat-variable at (1) shall not be DEALLOCATEd within the same DEALLOCATE statement jonathan dot hogg at stfc dot ac dot uk
                   ` (2 preceding siblings ...)
  2010-06-16 17:11 ` sgk at troutmask dot apl dot washington dot edu
@ 2010-06-17 10:25 ` burnus at gcc dot gnu dot org
  2010-06-17 15:22 ` [Bug fortran/44556] " kargl at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: burnus at gcc dot gnu dot org @ 2010-06-17 10:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from burnus at gcc dot gnu dot org  2010-06-17 10:25 -------
For completeness, the check was introduced for PR 38389 by the commit
http://gcc.gnu.org/ml/gcc-cvs/2009-03/msg00838.html


-- 


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


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

* [Bug fortran/44556] incorrect error:  Stat-variable at (1) shall not be DEALLOCATEd within the same DEALLOCATE statement
  2010-06-16  9:52 [Bug fortran/44556] New: incorrect error: Stat-variable at (1) shall not be DEALLOCATEd within the same DEALLOCATE statement jonathan dot hogg at stfc dot ac dot uk
                   ` (3 preceding siblings ...)
  2010-06-17 10:25 ` burnus at gcc dot gnu dot org
@ 2010-06-17 15:22 ` kargl at gcc dot gnu dot org
  2010-06-17 15:27 ` kargl at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: kargl at gcc dot gnu dot org @ 2010-06-17 15:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from kargl at gcc dot gnu dot org  2010-06-17 15:22 -------
Remove [4.5/4.6 Regression] from the summary as this 
has never worked, so it can't be a regression.


-- 

kargl at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.5/4.6 Regression]        |incorrect error:  Stat-
                   |incorrect error:  Stat-     |variable at (1) shall not be
                   |variable at (1) shall not be|DEALLOCATEd within the same
                   |DEALLOCATEd within the same |DEALLOCATE statement
                   |DEALLOCATE statement        |


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


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

* [Bug fortran/44556] incorrect error:  Stat-variable at (1) shall not be DEALLOCATEd within the same DEALLOCATE statement
  2010-06-16  9:52 [Bug fortran/44556] New: incorrect error: Stat-variable at (1) shall not be DEALLOCATEd within the same DEALLOCATE statement jonathan dot hogg at stfc dot ac dot uk
                   ` (4 preceding siblings ...)
  2010-06-17 15:22 ` [Bug fortran/44556] " kargl at gcc dot gnu dot org
@ 2010-06-17 15:27 ` kargl at gcc dot gnu dot org
  2010-06-17 19:08 ` kargl at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: kargl at gcc dot gnu dot org @ 2010-06-17 15:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from kargl at gcc dot gnu dot org  2010-06-17 15:26 -------
(In reply to comment #5)
> Remove [4.5/4.6 Regression] from the summary as this 
> has never worked, so it can't be a regression.
> 

Note, the OP's code appears to work in 4.4.0 because
prior to the commit noted in comment #4 there was no
checking on the constraints listed in the standard.


-- 


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


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

* [Bug fortran/44556] incorrect error:  Stat-variable at (1) shall not be DEALLOCATEd within the same DEALLOCATE statement
  2010-06-16  9:52 [Bug fortran/44556] New: incorrect error: Stat-variable at (1) shall not be DEALLOCATEd within the same DEALLOCATE statement jonathan dot hogg at stfc dot ac dot uk
                   ` (5 preceding siblings ...)
  2010-06-17 15:27 ` kargl at gcc dot gnu dot org
@ 2010-06-17 19:08 ` kargl at gcc dot gnu dot org
  2010-06-17 23:13 ` burnus at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: kargl at gcc dot gnu dot org @ 2010-06-17 19:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from kargl at gcc dot gnu dot org  2010-06-17 19:08 -------
The following patch restores the 4.4.0 behavior for
STAT of not checking derived type components.  This
of course now allows invalid code to compile such as
this modified version of OP's test subroutine

   subroutine test
      type(test_type) :: foo
      deallocate(foo%array, stat=foo%array(1))
   end subroutine test


Index: resolve.c
===================================================================
--- resolve.c   (revision 160935)
+++ resolve.c   (working copy)
@@ -6588,7 +6588,8 @@ resolve_allocate_deallocate (gfc_code *c
                   "variable", &stat->where);

       for (p = code->ext.alloc.list; p; p = p->next)
-       if (p->expr->symtree->n.sym->name == stat->symtree->n.sym->name)
+       if (stat->symtree->n.sym->ts.type != BT_DERIVED
+           && p->expr->symtree->n.sym->name == stat->symtree->n.sym->name)
          gfc_error ("Stat-variable at %L shall not be %sd within "
                     "the same %s statement", &stat->where, fcn, fcn);
     }
@@ -6617,7 +6618,8 @@ resolve_allocate_deallocate (gfc_code *c
                   "variable", &errmsg->where);

       for (p = code->ext.alloc.list; p; p = p->next)
-       if (p->expr->symtree->n.sym->name == errmsg->symtree->n.sym->name)
+       if (errmsg->symtree->n.sym->ts.type != BT_DERIVED
+           && p->expr->symtree->n.sym->name == errmsg->symtree->n.sym->name)
          gfc_error ("Errmsg-variable at %L shall not be %sd within "
                     "the same %s statement", &errmsg->where, fcn, fcn);
     }


-- 


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


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

* [Bug fortran/44556] incorrect error:  Stat-variable at (1) shall not be DEALLOCATEd within the same DEALLOCATE statement
  2010-06-16  9:52 [Bug fortran/44556] New: incorrect error: Stat-variable at (1) shall not be DEALLOCATEd within the same DEALLOCATE statement jonathan dot hogg at stfc dot ac dot uk
                   ` (6 preceding siblings ...)
  2010-06-17 19:08 ` kargl at gcc dot gnu dot org
@ 2010-06-17 23:13 ` burnus at gcc dot gnu dot org
  2010-06-18  7:33 ` [Bug fortran/44556] [4.5/4.6 Regression] " burnus at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: burnus at gcc dot gnu dot org @ 2010-06-17 23:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from burnus at gcc dot gnu dot org  2010-06-17 23:13 -------
Created an attachment (id=20935)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20935&action=view)
Draft patch, which keeps diagnostic for derived types

Draft patch, which fixes this regression and also adds a check for component
access. Not yet regtested.


-- 


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


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

* [Bug fortran/44556] [4.5/4.6 Regression] incorrect error:  Stat-variable at (1) shall not be DEALLOCATEd within the same DEALLOCATE statement
  2010-06-16  9:52 [Bug fortran/44556] New: incorrect error: Stat-variable at (1) shall not be DEALLOCATEd within the same DEALLOCATE statement jonathan dot hogg at stfc dot ac dot uk
                   ` (7 preceding siblings ...)
  2010-06-17 23:13 ` burnus at gcc dot gnu dot org
@ 2010-06-18  7:33 ` burnus at gcc dot gnu dot org
  2010-06-18 22:24 ` burnus at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: burnus at gcc dot gnu dot org @ 2010-06-18  7:33 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from burnus at gcc dot gnu dot org  2010-06-18 07:33 -------
Patch: http://gcc.gnu.org/ml/fortran/2010-06/msg00191.html


-- 

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|NEW                         |ASSIGNED
   Last reconfirmed|2010-06-16 12:21:06         |2010-06-18 07:33:34
               date|                            |
            Summary|incorrect error:  Stat-     |[4.5/4.6 Regression]
                   |variable at (1) shall not be|incorrect error:  Stat-
                   |DEALLOCATEd within the same |variable at (1) shall not be
                   |DEALLOCATE statement        |DEALLOCATEd within the same
                   |                            |DEALLOCATE statement


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


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

* [Bug fortran/44556] [4.5/4.6 Regression] incorrect error:  Stat-variable at (1) shall not be DEALLOCATEd within the same DEALLOCATE statement
  2010-06-16  9:52 [Bug fortran/44556] New: incorrect error: Stat-variable at (1) shall not be DEALLOCATEd within the same DEALLOCATE statement jonathan dot hogg at stfc dot ac dot uk
                   ` (8 preceding siblings ...)
  2010-06-18  7:33 ` [Bug fortran/44556] [4.5/4.6 Regression] " burnus at gcc dot gnu dot org
@ 2010-06-18 22:24 ` burnus at gcc dot gnu dot org
  2010-06-22  9:42 ` burnus at gcc dot gnu dot org
  2010-06-22  9:42 ` burnus at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: burnus at gcc dot gnu dot org @ 2010-06-18 22:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from burnus at gcc dot gnu dot org  2010-06-18 22:24 -------
Subject: Bug 44556

Author: burnus
Date: Fri Jun 18 22:23:40 2010
New Revision: 161011

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=161011
Log:
2010-06-18  Tobias Burnus  <burnus@net-b.de>

        PR fortran/44556
        * resolve.c (resolve_allocate_deallocate): Properly check
        part-refs in stat=/errmsg= for invalid use.

2010-06-18  Tobias Burnus  <burnus@net-b.de>

        PR fortran/44556
        * gfortran.dg/allocate_alloc_opt_11.f90: New.


Added:
    trunk/gcc/testsuite/gfortran.dg/allocate_alloc_opt_11.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/resolve.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug fortran/44556] [4.5/4.6 Regression] incorrect error:  Stat-variable at (1) shall not be DEALLOCATEd within the same DEALLOCATE statement
  2010-06-16  9:52 [Bug fortran/44556] New: incorrect error: Stat-variable at (1) shall not be DEALLOCATEd within the same DEALLOCATE statement jonathan dot hogg at stfc dot ac dot uk
                   ` (10 preceding siblings ...)
  2010-06-22  9:42 ` burnus at gcc dot gnu dot org
@ 2010-06-22  9:42 ` burnus at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: burnus at gcc dot gnu dot org @ 2010-06-22  9:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from burnus at gcc dot gnu dot org  2010-06-22 09:42 -------
Now also FIXED on the 4.5 branch. Thanks again for the bug report.


-- 

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


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

* [Bug fortran/44556] [4.5/4.6 Regression] incorrect error:  Stat-variable at (1) shall not be DEALLOCATEd within the same DEALLOCATE statement
  2010-06-16  9:52 [Bug fortran/44556] New: incorrect error: Stat-variable at (1) shall not be DEALLOCATEd within the same DEALLOCATE statement jonathan dot hogg at stfc dot ac dot uk
                   ` (9 preceding siblings ...)
  2010-06-18 22:24 ` burnus at gcc dot gnu dot org
@ 2010-06-22  9:42 ` burnus at gcc dot gnu dot org
  2010-06-22  9:42 ` burnus at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: burnus at gcc dot gnu dot org @ 2010-06-22  9:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from burnus at gcc dot gnu dot org  2010-06-22 09:41 -------
Subject: Bug 44556

Author: burnus
Date: Tue Jun 22 09:41:21 2010
New Revision: 161156

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=161156
Log:
2010-06-22  Tobias Burnus  <burnus@net-b.de>

        PR fortran/44556
        * resolve.c (resolve_allocate_deallocate): Properly check
        part-refs in stat=/errmsg= for invalid use.

2010-06-22  Tobias Burnus  <burnus@net-b.de>

        PR fortran/44556
        * gfortran.dg/allocate_alloc_opt_11.f90: New.


Added:
    branches/gcc-4_5-branch/gcc/testsuite/gfortran.dg/allocate_alloc_opt_11.f90
Modified:
    branches/gcc-4_5-branch/gcc/fortran/ChangeLog
    branches/gcc-4_5-branch/gcc/fortran/resolve.c
    branches/gcc-4_5-branch/gcc/testsuite/ChangeLog


-- 


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


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

end of thread, other threads:[~2010-06-22  9:42 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-16  9:52 [Bug fortran/44556] New: incorrect error: Stat-variable at (1) shall not be DEALLOCATEd within the same DEALLOCATE statement jonathan dot hogg at stfc dot ac dot uk
2010-06-16 12:21 ` [Bug fortran/44556] [4.5/4.6 Regression] " burnus at gcc dot gnu dot org
2010-06-16 14:34 ` kargl at gcc dot gnu dot org
2010-06-16 17:11 ` sgk at troutmask dot apl dot washington dot edu
2010-06-17 10:25 ` burnus at gcc dot gnu dot org
2010-06-17 15:22 ` [Bug fortran/44556] " kargl at gcc dot gnu dot org
2010-06-17 15:27 ` kargl at gcc dot gnu dot org
2010-06-17 19:08 ` kargl at gcc dot gnu dot org
2010-06-17 23:13 ` burnus at gcc dot gnu dot org
2010-06-18  7:33 ` [Bug fortran/44556] [4.5/4.6 Regression] " burnus at gcc dot gnu dot org
2010-06-18 22:24 ` burnus at gcc dot gnu dot org
2010-06-22  9:42 ` burnus at gcc dot gnu dot org
2010-06-22  9:42 ` 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).