public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/20891] New: error needed
@ 2005-04-08 16:04 jv244 at cam dot ac dot uk
  2005-05-19 17:15 ` [Bug fortran/20891] allocation depends on other object in same allocation tobi at gcc dot gnu dot org
  2005-09-30 20:48 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 6+ messages in thread
From: jv244 at cam dot ac dot uk @ 2005-04-08 16:04 UTC (permalink / raw)
  To: gcc-bugs

The following is non-standard and the compiler should probably generate a
warning/error with '-pedantic -std=f95'

  INTEGER, POINTER :: I
  INTEGER, DIMENSION(:),ALLOCATABLE :: N
  ALLOCATE(I,N(I))
  END

-- 
           Summary: error needed
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jv244 at cam dot ac dot uk
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: i686-pc-linux-gnu


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


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

* [Bug fortran/20891] allocation depends on other object in same allocation
  2005-04-08 16:04 [Bug fortran/20891] New: error needed jv244 at cam dot ac dot uk
@ 2005-05-19 17:15 ` tobi at gcc dot gnu dot org
  2005-09-30 20:48 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 6+ messages in thread
From: tobi at gcc dot gnu dot org @ 2005-05-19 17:15 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 697 bytes --]


------- Additional Comments From tobi at gcc dot gnu dot org  2005-05-19 17:14 -------
see the last paragraph on page 79 (§6.3.1)

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-05-19 17:14:58
               date|                            |
            Summary|error needed                |allocation depends on other
                   |                            |object in same allocation


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


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

* [Bug fortran/20891] allocation depends on other object in same allocation
  2005-04-08 16:04 [Bug fortran/20891] New: error needed jv244 at cam dot ac dot uk
  2005-05-19 17:15 ` [Bug fortran/20891] allocation depends on other object in same allocation tobi at gcc dot gnu dot org
@ 2005-09-30 20:48 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-30 20:48 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
 GCC target triplet|i686-pc-linux-gnu           |
           Keywords|                            |accepts-invalid
   Last reconfirmed|2005-05-19 17:14:58         |2005-09-30 20:48:11
               date|                            |


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


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

* [Bug fortran/20891] allocation depends on other object in same allocation
       [not found] <bug-20891-6642@http.gcc.gnu.org/bugzilla/>
  2006-09-05 19:40 ` pault at gcc dot gnu dot org
  2006-10-03 21:40 ` pault at gcc dot gnu dot org
@ 2006-10-03 21:42 ` pault at gcc dot gnu dot org
  2 siblings, 0 replies; 6+ messages in thread
From: pault at gcc dot gnu dot org @ 2006-10-03 21:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pault at gcc dot gnu dot org  2006-10-03 21:41 -------
Fixed on trunk

Paul


-- 

pault at gcc dot gnu dot org changed:

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


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


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

* [Bug fortran/20891] allocation depends on other object in same allocation
       [not found] <bug-20891-6642@http.gcc.gnu.org/bugzilla/>
  2006-09-05 19:40 ` pault at gcc dot gnu dot org
@ 2006-10-03 21:40 ` pault at gcc dot gnu dot org
  2006-10-03 21:42 ` pault at gcc dot gnu dot org
  2 siblings, 0 replies; 6+ messages in thread
From: pault at gcc dot gnu dot org @ 2006-10-03 21:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pault at gcc dot gnu dot org  2006-10-03 21:40 -------
Subject: Bug 20891

Author: pault
Date: Tue Oct  3 21:40:24 2006
New Revision: 117415

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=117415
Log:
2006-10-03  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/20779
        PR fortran/20891
        * resolve.c (find_sym_in_expr): New function that returns true
        if a symbol is found in an expression.
        (resolve_allocate_expr): Check whether the STAT variable is
        itself allocated in the same statement.  Use the call above to
        check whether any of the allocated arrays are used in array
        specifications in the same statement.

2006-10-03  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/20779
        PR fortran/20891
        * gfortran.dg/alloc_alloc_expr_1.f90: New test.

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


-- 


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


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

* [Bug fortran/20891] allocation depends on other object in same allocation
       [not found] <bug-20891-6642@http.gcc.gnu.org/bugzilla/>
@ 2006-09-05 19:40 ` pault at gcc dot gnu dot org
  2006-10-03 21:40 ` pault at gcc dot gnu dot org
  2006-10-03 21:42 ` pault at gcc dot gnu dot org
  2 siblings, 0 replies; 6+ messages in thread
From: pault at gcc dot gnu dot org @ 2006-09-05 19:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pault at gcc dot gnu dot org  2006-09-05 19:40 -------
A patch is ready but I have not had time to post it.

Watch the list this weekend.

Paul


-- 

pault at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pault at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2005-12-31 20:00:24         |2006-09-05 19:40:10
               date|                            |


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


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

end of thread, other threads:[~2006-10-03 21:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-08 16:04 [Bug fortran/20891] New: error needed jv244 at cam dot ac dot uk
2005-05-19 17:15 ` [Bug fortran/20891] allocation depends on other object in same allocation tobi at gcc dot gnu dot org
2005-09-30 20:48 ` pinskia at gcc dot gnu dot org
     [not found] <bug-20891-6642@http.gcc.gnu.org/bugzilla/>
2006-09-05 19:40 ` pault at gcc dot gnu dot org
2006-10-03 21:40 ` pault at gcc dot gnu dot org
2006-10-03 21:42 ` pault 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).