public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/44672] [F2008] ALLOCATE with SOURCE and no array-spec
       [not found] <bug-44672-4@http.gcc.gnu.org/bugzilla/>
@ 2013-01-08 12:34 ` dominiq at lps dot ens.fr
  2013-06-17  0:57 ` quantheory at gmail dot com
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 12+ messages in thread
From: dominiq at lps dot ens.fr @ 2013-01-08 12:34 UTC (permalink / raw)
  To: gcc-bugs


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

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-01-08
     Ever Confirmed|0                           |1

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2013-01-08 12:33:36 UTC ---
Duplicate of pr45440?


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

* [Bug fortran/44672] [F2008] ALLOCATE with SOURCE and no array-spec
       [not found] <bug-44672-4@http.gcc.gnu.org/bugzilla/>
  2013-01-08 12:34 ` [Bug fortran/44672] [F2008] ALLOCATE with SOURCE and no array-spec dominiq at lps dot ens.fr
@ 2013-06-17  0:57 ` quantheory at gmail dot com
  2013-07-25 12:17 ` burnus at gcc dot gnu.org
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 12+ messages in thread
From: quantheory at gmail dot com @ 2013-06-17  0:57 UTC (permalink / raw)
  To: gcc-bugs

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

Sean Santos <quantheory at gmail dot com> changed:

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

--- Comment #2 from Sean Santos <quantheory at gmail dot com> ---
Actually, this looks like a duplicate of 44529, although that one is tagged F03
when it should be F2008.


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

* [Bug fortran/44672] [F2008] ALLOCATE with SOURCE and no array-spec
       [not found] <bug-44672-4@http.gcc.gnu.org/bugzilla/>
  2013-01-08 12:34 ` [Bug fortran/44672] [F2008] ALLOCATE with SOURCE and no array-spec dominiq at lps dot ens.fr
  2013-06-17  0:57 ` quantheory at gmail dot com
@ 2013-07-25 12:17 ` burnus at gcc dot gnu.org
  2013-12-07 14:23 ` [Bug fortran/44672] [F08] " janus at gcc dot gnu.org
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 12+ messages in thread
From: burnus at gcc dot gnu.org @ 2013-07-25 12:17 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Tobias Burnus <burnus at gcc dot gnu.org> ---
*** Bug 44529 has been marked as a duplicate of this bug. ***


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

* [Bug fortran/44672] [F08] ALLOCATE with SOURCE and no array-spec
       [not found] <bug-44672-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2013-07-25 12:17 ` burnus at gcc dot gnu.org
@ 2013-12-07 14:23 ` janus at gcc dot gnu.org
  2014-11-23  7:34 ` vinzent.boerner at gmx dot de
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 12+ messages in thread
From: janus at gcc dot gnu.org @ 2013-12-07 14:23 UTC (permalink / raw)
  To: gcc-bugs

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

janus at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
            Summary|[F2008] ALLOCATE with       |[F08] ALLOCATE with SOURCE
                   |SOURCE and no array-spec    |and no array-spec

--- Comment #5 from janus at gcc dot gnu.org ---
There is a partial patch in PR 44529 comment 1.


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

* [Bug fortran/44672] [F08] ALLOCATE with SOURCE and no array-spec
       [not found] <bug-44672-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2013-12-07 14:23 ` [Bug fortran/44672] [F08] " janus at gcc dot gnu.org
@ 2014-11-23  7:34 ` vinzent.boerner at gmx dot de
  2015-03-30 17:32 ` vehre at gcc dot gnu.org
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 12+ messages in thread
From: vinzent.boerner at gmx dot de @ 2014-11-23  7:34 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44672

kalle <vinzent.boerner at gmx dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vinzent.boerner at gmx dot de

--- Comment #6 from kalle <vinzent.boerner at gmx dot de> ---
This bug is still virulent in gfortran 4.9 with source code:

Program tmp
  Implicit None
  Integer, Dimension(6) :: A
  Integer, Allocatable, Dimension(:) :: B
  A=1
  Allocate(B,source=A)
  write(*,*) B
End Program tmp

compiled with:

gfortran-4.9 -o tmp tmp.f90

will result in:

Allocate(B,source=A)
           1
Error: Array specification required in ALLOCATE statement at (1)


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

* [Bug fortran/44672] [F08] ALLOCATE with SOURCE and no array-spec
       [not found] <bug-44672-4@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2014-11-23  7:34 ` vinzent.boerner at gmx dot de
@ 2015-03-30 17:32 ` vehre at gcc dot gnu.org
  2015-03-31 10:45 ` vehre at gcc dot gnu.org
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 12+ messages in thread
From: vehre at gcc dot gnu.org @ 2015-03-30 17:32 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44672

vehre at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |vehre at gcc dot gnu.org


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

* [Bug fortran/44672] [F08] ALLOCATE with SOURCE and no array-spec
       [not found] <bug-44672-4@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2015-03-30 17:32 ` vehre at gcc dot gnu.org
@ 2015-03-31 10:45 ` vehre at gcc dot gnu.org
  2015-05-28  7:02 ` vehre at gcc dot gnu.org
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 12+ messages in thread
From: vehre at gcc dot gnu.org @ 2015-03-31 10:45 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44672

vehre at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |WAITING

--- Comment #7 from vehre at gcc dot gnu.org ---
Patch available at https://gcc.gnu.org/ml/fortran/2015-03/msg00168.html.

Awaiting review, targeting for 5.x.


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

* [Bug fortran/44672] [F08] ALLOCATE with SOURCE and no array-spec
       [not found] <bug-44672-4@http.gcc.gnu.org/bugzilla/>
                   ` (6 preceding siblings ...)
  2015-03-31 10:45 ` vehre at gcc dot gnu.org
@ 2015-05-28  7:02 ` vehre at gcc dot gnu.org
  2015-06-17  8:32 ` vehre at gcc dot gnu.org
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 12+ messages in thread
From: vehre at gcc dot gnu.org @ 2015-05-28  7:02 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44672

vehre at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |damian at sourceryinstitute dot or
                   |                            |g

--- Comment #8 from vehre at gcc dot gnu.org ---
*** Bug 66321 has been marked as a duplicate of this bug. ***


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

* [Bug fortran/44672] [F08] ALLOCATE with SOURCE and no array-spec
       [not found] <bug-44672-4@http.gcc.gnu.org/bugzilla/>
                   ` (7 preceding siblings ...)
  2015-05-28  7:02 ` vehre at gcc dot gnu.org
@ 2015-06-17  8:32 ` vehre at gcc dot gnu.org
  2015-07-29  7:51 ` vehre at gcc dot gnu.org
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 12+ messages in thread
From: vehre at gcc dot gnu.org @ 2015-06-17  8:32 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44672

vehre at gcc dot gnu.org changed:

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

--- Comment #10 from vehre at gcc dot gnu.org ---
Fixed with r224477.


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

* [Bug fortran/44672] [F08] ALLOCATE with SOURCE and no array-spec
       [not found] <bug-44672-4@http.gcc.gnu.org/bugzilla/>
                   ` (8 preceding siblings ...)
  2015-06-17  8:32 ` vehre at gcc dot gnu.org
@ 2015-07-29  7:51 ` vehre at gcc dot gnu.org
  2015-09-29 12:10 ` zmi007 at gmail dot com
  2015-09-29 13:02 ` vehre at gcc dot gnu.org
  11 siblings, 0 replies; 12+ messages in thread
From: vehre at gcc dot gnu.org @ 2015-07-29  7:51 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44672

--- Comment #12 from vehre at gcc dot gnu.org ---
This is a bigger change to the code and we already have seen a few bugs it
caused. This means, that backporting will be a bigger effort and I don't
assume, that there will be much support on the gfortran mailing list. But you
are free to get an opinion there whether the patch will be accepted for
backporting.


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

* [Bug fortran/44672] [F08] ALLOCATE with SOURCE and no array-spec
       [not found] <bug-44672-4@http.gcc.gnu.org/bugzilla/>
                   ` (9 preceding siblings ...)
  2015-07-29  7:51 ` vehre at gcc dot gnu.org
@ 2015-09-29 12:10 ` zmi007 at gmail dot com
  2015-09-29 13:02 ` vehre at gcc dot gnu.org
  11 siblings, 0 replies; 12+ messages in thread
From: zmi007 at gmail dot com @ 2015-09-29 12:10 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44672

zmi <zmi007 at gmail dot com> changed:

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

--- Comment #13 from zmi <zmi007 at gmail dot com> ---
(In reply to vehre from comment #12)
Does it fix also the same situation with mold= specifier? f.e. in this simple
program?


program test_mold
   integer, allocatable, dimension(:) :: a,b
   type ac
      integer :: a
   end type ac
   type(ac), allocatable, dimension(:) :: aa,bb

   allocate(a(10))
   allocate(aa(10))
   allocate (b, mold=a) !<---
   allocate (bb, mold=aa) !<---

end program test_mold


gfortran --version
GNU Fortran (SUSE Linux) 5.2.1 20150721 [gcc-5-branch revision 226027]
Copyright (C) 2015 Free Software Foundation, Inc.
gfortran test_mold.f90 -o test_mold.xtest_mold.f90:11:13:

    allocate (b, mold=a)
             1
Error: Array specification required in ALLOCATE statement at (1)
test_mold.f90:13:13:

    allocate (bb, mold=aa)
             1
Error: Array specification required in ALLOCATE statement at (1)


Interpretation of F2008 6.7.1.2 is a bit tedious but mold= should work similar
to source= specifier ?


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

* [Bug fortran/44672] [F08] ALLOCATE with SOURCE and no array-spec
       [not found] <bug-44672-4@http.gcc.gnu.org/bugzilla/>
                   ` (10 preceding siblings ...)
  2015-09-29 12:10 ` zmi007 at gmail dot com
@ 2015-09-29 13:02 ` vehre at gcc dot gnu.org
  11 siblings, 0 replies; 12+ messages in thread
From: vehre at gcc dot gnu.org @ 2015-09-29 13:02 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44672

--- Comment #14 from vehre at gcc dot gnu.org ---
Yes, it does, but the fix is due to its size only available on trunk.


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

end of thread, other threads:[~2015-09-29 13:02 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-44672-4@http.gcc.gnu.org/bugzilla/>
2013-01-08 12:34 ` [Bug fortran/44672] [F2008] ALLOCATE with SOURCE and no array-spec dominiq at lps dot ens.fr
2013-06-17  0:57 ` quantheory at gmail dot com
2013-07-25 12:17 ` burnus at gcc dot gnu.org
2013-12-07 14:23 ` [Bug fortran/44672] [F08] " janus at gcc dot gnu.org
2014-11-23  7:34 ` vinzent.boerner at gmx dot de
2015-03-30 17:32 ` vehre at gcc dot gnu.org
2015-03-31 10:45 ` vehre at gcc dot gnu.org
2015-05-28  7:02 ` vehre at gcc dot gnu.org
2015-06-17  8:32 ` vehre at gcc dot gnu.org
2015-07-29  7:51 ` vehre at gcc dot gnu.org
2015-09-29 12:10 ` zmi007 at gmail dot com
2015-09-29 13:02 ` vehre at gcc dot gnu.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).