public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/112834] Class array function selector causes chain of syntax and other spurious errors
Date: Sat, 16 Dec 2023 13:27:01 +0000	[thread overview]
Message-ID: <bug-112834-4-6LSpPkai0q@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-112834-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112834

--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Paul Thomas <pault@gcc.gnu.org>:

https://gcc.gnu.org/g:5ae6f524f5d4ee2ab79ba797fa4901daf90afb25

commit r14-6620-g5ae6f524f5d4ee2ab79ba797fa4901daf90afb25
Author: Paul Thomas <pault@gcc.gnu.org>
Date:   Sat Dec 16 13:26:47 2023 +0000

    Fortran: Fix problems with class array function selectors [PR112834]

    2023-12-16  Paul Thomas  <pault@gcc.gnu.org>

    gcc/fortran
            PR fortran/112834
            * match.cc (build_associate_name): Fix whitespace issues.
            (select_type_set_tmp): If the selector is of unknown type, go
            the SELECT TYPE selector to see if this is a function and, if
            the result is available, use its typespec.
            * parse.cc (parse_associate): Again, use the function result if
            the type of the selector result is unknown.
            * trans-stmt.cc (trans_associate_var): The expression has to be
            of type class, for class_target to be true. Convert and fix
            class functions. Pass the fixed expression.

            PR fortran/111853
            * resolve.cc (gfc_expression_rank): Avoid null dereference.

    gcc/testsuite/
            PR fortran/112834
            * gfortran.dg/associate_63.f90 : New test.

            PR fortran/111853
            * gfortran.dg/pr111853.f90 : New test.

  parent reply	other threads:[~2023-12-16 13:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-03 17:56 [Bug fortran/112834] New: " pault at gcc dot gnu.org
2023-12-06 12:31 ` [Bug fortran/112834] " pault at gcc dot gnu.org
2023-12-06 12:33 ` pault at gcc dot gnu.org
2023-12-16 13:27 ` cvs-commit at gcc dot gnu.org [this message]
2024-03-06 15:19 ` 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-112834-4-6LSpPkai0q@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).