public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r10-7700] Commit test case for PR 87644, which has fixed itself somehow.
@ 2020-04-13 17:07 Thomas Kथघnig
0 siblings, 0 replies; only message in thread
From: Thomas Kथघnig @ 2020-04-13 17:07 UTC (permalink / raw)
To: gcc-cvs
[-- 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-04-13 17:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-13 17:07 [gcc r10-7700] Commit test case for PR 87644, which has fixed itself somehow Thomas Kथघnig
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).