public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Janus Weil <janus@gcc.gnu.org>
To: gfortran <fortran@gcc.gnu.org>, gcc-patches <gcc-patches@gcc.gnu.org>
Subject: Re: [Patch, Fortran, F08] PR 49562: [4.6/4.7 Regression] [OOP] assigning value to type-bound function
Date: Fri, 01 Jul 2011 14:29:00 -0000	[thread overview]
Message-ID: <BANLkTikCOoA2QEVhjG9hiboEow08w=u+Eg@mail.gmail.com> (raw)
In-Reply-To: <BANLkTi=yQDZZMgPU1piEiQuoMZbVkeiXmQ@mail.gmail.com>

Ping ... !



2011/6/28 Janus Weil <janus@gcc.gnu.org>:
> Hi all,
>
> here is a patch for a problem which was originally reported as an
> ICE-on-invalid regression (assigning to a type-bound function).
>
> In the course of fixing it, I noticed that it becomes valid according
> to F08 if the function is pointer-valued, and modified the patch such
> that it will accept this variant. I also adapted the original test
> case to be a run-time test of this F08 feature (in fact it is just a
> very complicated way of performing an increment from 0 to 1, and would
> still segfault without the patch).
>
> The patch was regtested on x86_64-unknown-linux-gnu. Ok for trunk and 4.6.2?
>
> Cheers,
> Janus
>
>
>
> 2011-06-28  Janus Weil  <janus@gcc.gnu.org>
>
>        PR fortran/49562
>        * expr.c (gfc_check_vardef_context): Handle type-bound procedures.
>
>
> 2011-06-28  Janus Weil  <janus@gcc.gnu.org>
>
>        PR fortran/49562
>        * gfortran.dg/typebound_proc_23.f90: New.
>

  reply	other threads:[~2011-07-01 14:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-28 15:53 Janus Weil
2011-07-01 14:29 ` Janus Weil [this message]
2011-07-02  8:29 ` Paul Richard Thomas
2011-07-02 12:21   ` Janus Weil

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='BANLkTikCOoA2QEVhjG9hiboEow08w=u+Eg@mail.gmail.com' \
    --to=janus@gcc.gnu.org \
    --cc=fortran@gcc.gnu.org \
    --cc=gcc-patches@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).