public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/55314] New: [4.6/4.7/4.8 Regression] Rejects some valid ALLOCATE statements
@ 2012-11-13 22:35 tkoenig at gcc dot gnu.org
  2012-11-13 22:39 ` [Bug fortran/55314] " tkoenig at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: tkoenig at gcc dot gnu.org @ 2012-11-13 22:35 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 55314
           Summary: [4.6/4.7/4.8 Regression] Rejects some valid ALLOCATE
                    statements
    Classification: Unclassified
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: tkoenig@gcc.gnu.org


Test case by Jacob Weisman Poulsen:

jwp@wrapcrap:~$ cat test.f90 
program main
  implicit none
  integer :: max_nb
  type comm_mask
    integer(4), pointer :: mask(:)
  end type comm_mask
  type (comm_mask), allocatable, save :: encode(:,:)
  max_nb=2
  allocate( encode(1:1,1:max_nb))
  allocate( encode(1,1)%mask(1),encode(1,2)%mask(1))
end program main

jwp@wrapcrap:~$ gfortran test.f90 
test.f90:10.12-32:

  allocate( encode(1,1)%mask(1),encode(1,2)%mask(1))
            1                   2
Error: Allocate-object at (1) also appears at (2)


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

end of thread, other threads:[~2012-11-24 22:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-13 22:35 [Bug fortran/55314] New: [4.6/4.7/4.8 Regression] Rejects some valid ALLOCATE statements tkoenig at gcc dot gnu.org
2012-11-13 22:39 ` [Bug fortran/55314] " tkoenig at gcc dot gnu.org
2012-11-13 22:59 ` tkoenig at gcc dot gnu.org
2012-11-20 12:29 ` jakub at gcc dot gnu.org
2012-11-24 15:00 ` tkoenig at gcc dot gnu.org
2012-11-24 17:13 ` tkoenig at gcc dot gnu.org
2012-11-24 22:17 ` tkoenig at gcc dot gnu.org
2012-11-24 22:20 ` tkoenig 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).