public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "matthew dot amos at baesystems dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/17379] Generic functions not resolved Date: Mon, 27 Sep 2004 10:49:00 -0000 [thread overview] Message-ID: <20040927104921.21350.qmail@sourceware.org> (raw) In-Reply-To: <20040909162101.17379.CARendleman@lbl.gov> ------- Additional Comments From matthew dot amos at baesystems dot com 2004-09-27 10:49 ------- I have some code which triggers the same bug (I think). If it helps, I have reproduced the code here. The funny thing is; it works if you replace "length" with "length_R4" in normalise_R4. module module_vec3d implicit none ! Public procedures private public :: normalise, length ! Module constants integer, parameter :: SP = selected_real_kind(6) integer, parameter :: DP = selected_real_kind(12) ! Vector length INTERFACE length MODULE PROCEDURE length_R4 END INTERFACE ! Vector normalise INTERFACE normalise MODULE PROCEDURE normalise_R4 END INTERFACE CONTAINS FUNCTION length_R4 (x) result (y) real(SP) :: y real(SP), intent(in) :: x(3) y = sqrt(x(1)**2 + x(2)**2 + x(3)**2) END FUNCTION length_R4 FUNCTION normalise_R4 (x) result (y) real(SP) :: y(3) real(SP), intent(in) :: x(3) y = x / length(x) END FUNCTION normalise_R4 END MODULE module_vec3d -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17379
next prev parent reply other threads:[~2004-09-27 10:49 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-09-09 16:21 [Bug fortran/17379] New: " CARendleman at lbl dot gov 2004-09-09 17:02 ` [Bug fortran/17379] " pinskia at gcc dot gnu dot org 2004-09-18 11:26 ` tobi at gcc dot gnu dot org 2004-09-23 19:43 ` tobi at gcc dot gnu dot org 2004-09-23 19:44 ` tobi at gcc dot gnu dot org 2004-09-23 19:46 ` tobi at gcc dot gnu dot org 2004-09-23 20:10 ` pinskia at gcc dot gnu dot org 2004-09-27 10:49 ` matthew dot amos at baesystems dot com [this message] 2005-01-04 13:41 ` Thomas dot Koenig at online dot de 2005-01-05 18:14 ` CARendleman at lbl dot gov 2005-07-22 19:15 ` paulthomas2 at wanadoo dot fr 2005-08-12 21:47 ` tkoenig at gcc dot gnu dot org 2005-08-23 1:54 ` 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=20040927104921.21350.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).