public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "janus at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/39850] Too strict checking for procedures as actual argument
Date: Mon, 22 Jun 2009 09:04:00 -0000 [thread overview]
Message-ID: <20090622090441.10775.qmail@sourceware.org> (raw)
In-Reply-To: <bug-39850-13404@http.gcc.gnu.org/bugzilla/>
------- Comment #8 from janus at gcc dot gnu dot org 2009-06-22 09:04 -------
> pr39850.f90:12:0: internal compiler error: in gfc_typenode_for_spec, at
> fortran/trans-types.c:995
Yeah, the same happens for the examples in PR37254. I didn't notice it before,
since I changed the test case slightly in my commit. Here is a patch which
fixes it:
Index: gcc/fortran/interface.c
===================================================================
--- gcc/fortran/interface.c (revision 148778)
+++ gcc/fortran/interface.c (working copy)
@@ -1407,9 +1407,14 @@
}
if (formal->attr.function && !act_sym->attr.function)
- gfc_add_function (&act_sym->attr, act_sym->name,
&act_sym->declared_at);
-
- if (formal->attr.subroutine && !act_sym->attr.subroutine)
+ {
+ gfc_add_function (&act_sym->attr, act_sym->name,
+ &act_sym->declared_at);
+ if (act_sym->ts.type == BT_UNKNOWN
+ && gfc_set_default_type (act_sym, 1, act_sym->ns) == FAILURE)
+ return 0;
+ }
+ else if (formal->attr.subroutine && !act_sym->attr.subroutine)
gfc_add_subroutine (&act_sym->attr, act_sym->name,
&act_sym->declared_at);
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39850
next prev parent reply other threads:[~2009-06-22 9:04 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-22 14:56 [Bug fortran/39850] New: " burnus at gcc dot gnu dot org
2009-04-22 16:56 ` [Bug fortran/39850] " janus at gcc dot gnu dot org
2009-06-20 14:12 ` janus at gcc dot gnu dot org
2009-06-20 14:41 ` janus at gcc dot gnu dot org
2009-06-20 15:17 ` janus at gcc dot gnu dot org
2009-06-20 17:44 ` burnus at gcc dot gnu dot org
2009-06-21 19:06 ` janus at gcc dot gnu dot org
2009-06-21 19:16 ` janus at gcc dot gnu dot org
2009-06-22 8:29 ` dominiq at lps dot ens dot fr
2009-06-22 9:04 ` janus at gcc dot gnu dot org [this message]
2009-06-22 14:18 ` dominiq at lps dot ens dot fr
2009-06-22 21:03 ` janus 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=20090622090441.10775.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).