public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "pault at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/31154] IMPORT fails for "<imported symbol> FUNCTION (...)" kind of procedures Date: Tue, 02 Oct 2007 07:17:00 -0000 [thread overview] Message-ID: <20071002071731.2813.qmail@sourceware.org> (raw) In-Reply-To: <bug-31154-13404@http.gcc.gnu.org/bugzilla/> ------- Comment #7 from pault at gcc dot gnu dot org 2007-10-02 07:17 ------- Subject: Bug 31154 Author: pault Date: Tue Oct 2 07:17:01 2007 New Revision: 128948 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=128948 Log: 2007-10-02 Paul Thomas <pault@gcc.gnu.org> PR fortran/31154 PR fortran/31229 PR fortran/33334 * decl.c : Declare gfc_function_kind_locs and gfc_function_type_locus. (gfc_match_kind_spec): Add second argument kind_expr_only. Store locus before trying to match the expression. If the current state corresponds to a function declaration and there is no match to the expression, read to the parenthesis, return kind = -1, dump the expression and return. (gfc_match_type_spec): Renamed from match_type_spec and all references changed. If an interface or an external function, store the locus, set kind = -1 and return. Otherwise, if kind is already = -1, use gfc_find_symbol to try to find a use associated or imported type. match.h : Prototype for gfc_match_type_spec. * parse.c (match_deferred_characteristics): New function. (parse_spec): If in a function, statement is USE or IMPORT or DERIVED_DECL and the function kind=-1, call match_deferred_characteristics. If kind=-1 at the end of the specification expressions, this is an error. * parse.h : Declare external gfc_function_kind_locs and gfc_function_type_locus. 2007-10-02 Paul Thomas <pault@gcc.gnu.org> PR fortran/31154 PR fortran/31229 PR fortran/33334 * gfortran.dg/function_kinds_1.f90: New test. * gfortran.dg/function_kinds_2.f90: New test. * gfortran.dg/derived_function_interface_1.f90: Correct illegal use association into interfaces. Added: trunk/gcc/testsuite/gfortran.dg/function_kinds_1.f90 trunk/gcc/testsuite/gfortran.dg/function_kinds_2.f90 trunk/gcc/testsuite/gfortran.dg/intent_out_2.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/decl.c trunk/gcc/fortran/match.h trunk/gcc/fortran/parse.c trunk/gcc/fortran/parse.h trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gfortran.dg/derived_function_interface_1.f90 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31154
next prev parent reply other threads:[~2007-10-02 7:17 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-03-12 19:16 [Bug fortran/31154] New: " burnus at gcc dot gnu dot org 2007-03-16 22:40 ` [Bug fortran/31154] " brooks at gcc dot gnu dot org 2007-03-18 18:03 ` fxcoudert at gcc dot gnu dot org 2007-07-02 22:28 ` burnus at gcc dot gnu dot org 2007-09-07 15:02 ` burnus at gcc dot gnu dot org 2007-09-08 5:02 ` patchapp at dberlin dot org 2007-09-22 18:43 ` pault at gcc dot gnu dot org 2007-09-27 0:11 ` patchapp at dberlin dot org 2007-10-02 7:17 ` pault at gcc dot gnu dot org [this message] 2007-10-02 7:22 ` pault 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=20071002071731.2813.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).