* [Committed] PR fortran/88376 -- remove assert()
@ 2019-01-10 1:13 Steve Kargl
0 siblings, 0 replies; only message in thread
From: Steve Kargl @ 2019-01-10 1:13 UTC (permalink / raw)
To: fortran, gcc-patches
[-- Attachment #1: Type: text/plain, Size: 290 bytes --]
I've committed the attached patch as obvious.
2019-01-09 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/88376
* resolve.c (is_illegal_recursion): Remove an assert().
2019-01-09 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/88376
* gfortran.dg/pr88376.f90: New test.
--
Steve
[-- Attachment #2: pr88376.diff --]
[-- Type: text/x-diff, Size: 904 bytes --]
Index: gcc/fortran/resolve.c
===================================================================
--- gcc/fortran/resolve.c (revision 267779)
+++ gcc/fortran/resolve.c (working copy)
@@ -1686,8 +1686,6 @@ is_illegal_recursion (gfc_symbol* sym, gfc_namespace*
|| gfc_fl_struct (sym->attr.flavor))
return false;
- gcc_assert (sym->attr.flavor == FL_PROCEDURE);
-
/* If we've got an ENTRY, find real procedure. */
if (sym->attr.entry && sym->ns->entries)
proc_sym = sym->ns->entries->sym;
Index: gcc/testsuite/gfortran.dg/pr88376.f90
===================================================================
--- gcc/testsuite/gfortran.dg/pr88376.f90 (nonexistent)
+++ gcc/testsuite/gfortran.dg/pr88376.f90 (working copy)
@@ -0,0 +1,8 @@
+! { dg-do compile }
+module m
+ integer :: n
+contains
+ subroutine s
+ character(n(3)) :: c ! { dg-error "not a function" }
+ end
+end
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-01-10 1:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-10 1:13 [Committed] PR fortran/88376 -- remove assert() Steve Kargl
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).