public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/55314] New: [4.6/4.7/4.8 Regression] Rejects some valid ALLOCATE statements
Date: Tue, 13 Nov 2012 22:35:00 -0000	[thread overview]
Message-ID: <bug-55314-4@http.gcc.gnu.org/bugzilla/> (raw)


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)


             reply	other threads:[~2012-11-13 22:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-13 22:35 tkoenig at gcc dot gnu.org [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-55314-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).