public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: "Thomas Kथघnig" <tkoenig@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r10-7700] Commit test case for PR 87644, which has fixed itself somehow.
Date: Mon, 13 Apr 2020 17:07:18 +0000 (GMT)	[thread overview]
Message-ID: <20200413170718.D6A76385DC14@sourceware.org> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="us-ascii", Size: 1632 bytes --]

https://gcc.gnu.org/g:ec72bb0c48cfbd8b9812a6df1049fbcbad472e15

commit r10-7700-gec72bb0c48cfbd8b9812a6df1049fbcbad472e15
Author: Thomas König <tkoenig@gcc.gnu.org>
Date:   Mon Apr 13 19:06:41 2020 +0200

    Commit test case for PR 87644, which has fixed itself somehow.
    
    2020-04-13  Thomas Koenig  <tkoenig@gcc.gnu.org>
    
            PR fortran/87644
            * gfortran.dg/variable_parameter.f90: New test.

Diff:
---
 gcc/testsuite/ChangeLog                          |  5 +++++
 gcc/testsuite/gfortran.dg/variable_parameter.f90 | 22 ++++++++++++++++++++++
 2 files changed, 27 insertions(+)

diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 3c3352f5c8b..d58c76b0db0 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2020-04-13  Thomas Koenig  <tkoenig@gcc.gnu.org>
+
+	PR fortran/87644
+	* gfortran.dg/variable_parameter.f90: New test.
+
 2020-04-13  Linus Koenig <link@sig-st.de>
 
 	PR fortran/94192
diff --git a/gcc/testsuite/gfortran.dg/variable_parameter.f90 b/gcc/testsuite/gfortran.dg/variable_parameter.f90
new file mode 100644
index 00000000000..d653c30562f
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/variable_parameter.f90
@@ -0,0 +1,22 @@
+! { dg-do compile }
+! PR 87644 - this used to cause an ICE.
+! Test case by Matt Thompson.
+module test
+
+  implicit none
+  private
+  public :: get
+  
+contains
+
+  subroutine initialize()
+     integer :: parameters
+     parameters = get()
+  end subroutine initialize
+
+  function get() result(parameters)
+     integer :: parameters
+     parameters = 1
+  end function get
+
+end module test


                 reply	other threads:[~2020-04-13 17:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20200413170718.D6A76385DC14@sourceware.org \
    --to=tkoenig@gcc.gnu.org \
    --cc=gcc-cvs@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).