public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "antony at cosmologist dot info" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/59414] [OOP] Class array pointers: compile error on valid code (Different ranks in pointer assignment)
Date: Sat, 07 Dec 2013 12:33:00 -0000	[thread overview]
Message-ID: <bug-59414-4-REatiAB1wX@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-59414-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #5 from Antony Lewis <antony at cosmologist dot info> ---
Thanks for the quick fix!

The sourced allocate errors crop up in various places in the full code, and
already seem to be known in several bug reports, e.g.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44672

For example in this case you just get a compiler error:

module test
  Type InterpGrid2D
        REAL, pointer :: z(:,:) => NULL()
    contains
    procedure :: Init => InterpGrid2D_Init
  end Type InterpGrid2D
contains
  subroutine InterpGrid2D_Init(W, z)
    class(InterpGrid2D):: W
    REAL, INTENT(IN), pointer :: z(:,:)

    allocate(W%z, source = z)

   end subroutine InterpGrid2D_Init
end module


  parent reply	other threads:[~2013-12-07 12:33 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-06 18:53 [Bug fortran/59414] New: " antony at cosmologist dot info
2013-12-07 11:12 ` [Bug fortran/59414] [OOP] " janus at gcc dot gnu.org
2013-12-07 11:56 ` janus at gcc dot gnu.org
2013-12-07 12:33 ` antony at cosmologist dot info [this message]
2013-12-07 12:46 ` janus at gcc dot gnu.org
2013-12-07 14:04 ` dominiq at lps dot ens.fr
2013-12-07 14:26 ` janus at gcc dot gnu.org
2013-12-07 15:13 ` janus at gcc dot gnu.org
2013-12-07 16:59 ` kargl at gcc dot gnu.org
2013-12-07 19:27 ` janus at gcc dot gnu.org
2013-12-07 19:30 ` janus at gcc dot gnu.org
2013-12-19 15:21 ` [Bug fortran/59414] [4.8/4.9 Regression] [OOP] ICE in in gfc_conv_expr_descriptor on ALLOCATE inside SELECT TYPE rguenth at gcc dot gnu.org
2014-01-19 12:34 ` pault at gcc dot gnu.org
2014-01-19 21:06 ` pault at gcc dot gnu.org
2014-01-26 14:31 ` mikael at gcc dot gnu.org
2014-01-26 17:41 ` paul.richard.thomas at gmail dot com
2014-01-28 20:11 ` pault at gcc dot gnu.org
2014-01-28 20:18 ` [Bug fortran/59414] [4.8 " pault at gcc dot gnu.org
2014-02-01 22:32 ` pault at gcc dot gnu.org
2014-02-01 22:34 ` pault 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-59414-4-REatiAB1wX@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).