public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/20892] dummy procedure can't be generic Date: Sun, 21 May 2006 20:50:00 -0000 [thread overview] Message-ID: <20060521204921.5679.qmail@sourceware.org> (raw) In-Reply-To: <bug-20892-6642@http.gcc.gnu.org/bugzilla/> ------- Comment #3 from fxcoudert at gcc dot gnu dot org 2006-05-21 20:49 ------- Proposed patch (wording from the g95 error message). With that patch, compiling the testcase is a bit noisy (additional errors after the first error message), I'll try to find a cleaner solution. Index: interface.c =================================================================== --- interface.c (revision 113849) +++ interface.c (working copy) @@ -217,6 +217,13 @@ && gfc_add_generic (&sym->attr, sym->name, NULL) == FAILURE) return MATCH_ERROR; + if (sym->attr.dummy) + { + gfc_error ("Dummy procedure '%s' at %C cannot have a " + "generic interface", sym->name); + return MATCH_ERROR; + } + current_interface.sym = gfc_new_block = sym; break; -- fxcoudert at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fxcoudert at gcc dot gnu dot | |org AssignedTo|unassigned at gcc dot gnu |fxcoudert at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED Keywords| |patch Last reconfirmed|2005-12-31 19:59:59 |2006-05-21 20:49:21 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20892
next prev parent reply other threads:[~2006-05-21 20:50 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <bug-20892-6642@http.gcc.gnu.org/bugzilla/> 2005-12-31 20:00 ` pinskia at gcc dot gnu dot org 2006-05-21 20:50 ` fxcoudert at gcc dot gnu dot org [this message] 2006-07-05 15:22 ` fxcoudert at gcc dot gnu dot org 2006-07-05 15:24 ` [Bug fortran/20892] [4.1 only] " fxcoudert at gcc dot gnu dot org 2006-07-24 21:03 ` fxcoudert at gcc dot gnu dot org 2006-07-24 21:03 ` [Bug fortran/20892] " fxcoudert at gcc dot gnu dot org 2005-04-08 16:04 [Bug fortran/20892] New: error needed jv244 at cam dot ac dot uk 2005-05-19 17:15 ` [Bug fortran/20892] dummy procedure can't be generic tobi at gcc dot gnu dot org 2005-09-30 20:49 ` pinskia 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=20060521204921.5679.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: linkBe 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).