public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "pault at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/20863] Pointer problems in PURE procedures
Date: Mon, 18 Jun 2007 23:04:00 -0000	[thread overview]
Message-ID: <20070618230445.29212.qmail@sourceware.org> (raw)
In-Reply-To: <bug-20863-6642@http.gcc.gnu.org/bugzilla/>



------- Comment #5 from pault at gcc dot gnu dot org  2007-06-18 23:04 -------
Subject: Bug 20863

Author: pault
Date: Mon Jun 18 23:04:28 2007
New Revision: 125831

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=125831
Log:
2007-06-19  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/20863
        PR fortran/20082
        * resolve.c (resolve_code): Use gfc_impure_variable as a
        condition for rejecting derived types with pointers, in pure
        procedures.
        (gfc_impure_variable): Add test for dummy arguments of pure
        procedures; any for functions and INTENT_IN for subroutines.

        PR fortran/32236
        * data.c (gfc_assign_data_value): Change the ICE on an array
        reference initializer not being an array into an error and
        clear init to prevent a repetition of the error.

2007-06-19  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/20863
        PR fortran/20082
        * gfortran.dg/impure_assignment_2.f90 : New test.

        PR fortran/32236
        * gfortran.dg/data_initialized_2.f90 : New test.

        * gfortran.dg/equiv_7.f90 : Test for endianess and call the
        appropriate version of 'dmach'.

Added:
    trunk/gcc/testsuite/gfortran.dg/data_initialized_2.f90
    trunk/gcc/testsuite/gfortran.dg/impure_assignment_2.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/data.c
    trunk/gcc/fortran/resolve.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gfortran.dg/equiv_7.f90


-- 


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


  parent reply	other threads:[~2007-06-18 23:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-20863-6642@http.gcc.gnu.org/bugzilla/>
2006-10-12  0:07 ` brooks at gcc dot gnu dot org
2007-06-16 11:07 ` pault at gcc dot gnu dot org
2007-06-16 16:10 ` patchapp at dberlin dot org
2007-06-18 23:04 ` pault at gcc dot gnu dot org [this message]
2007-06-18 23:09 ` pault at gcc dot gnu dot org
2007-06-19 16:30 ` [Bug fortran/20863] [4.2 only] " pault at gcc dot gnu dot 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=20070618230445.29212.qmail@sourceware.org \
    --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).