public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "dfranke at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/36553] Missing interface not detected in call to same file function Date: Sun, 23 May 2010 19:06:00 -0000 [thread overview] Message-ID: <20100523190603.10179.qmail@sourceware.org> (raw) In-Reply-To: <bug-36553-12313@http.gcc.gnu.org/bugzilla/> ------- Comment #10 from dfranke at gcc dot gnu dot org 2010-05-23 19:06 ------- Still an issue with gcc version 4.6.0 20100520 (experimental) (GCC) Replaced ice-on-invalid with accepts-invalid keyword. The compiler is fine, the produced binary isn't - there should be no binary. Smaller testcase: real :: f print *, f( (/ 0.0, 1.0/) ) end function f(x) real, intent(in) :: x(:) ! assumed shape requires explicit interface in caller real :: f(size(x)) f = sin(x) ! array valued result requires explicit interface in caller end function What bothers me: how are we supposed to determine if an explicit interface would be required, if the function in questions is in a different compilation unit? Can -fwhole-program/-flto, or whatever else looks at the whole picture, tweaked to do that? -- dfranke at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|ice-on-invalid-code |accepts-invalid http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36553
next prev parent reply other threads:[~2010-05-23 19:06 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-06-17 16:44 [Bug fortran/36553] New: [4.4 Regression] regression due to revision 136821 dominiq at lps dot ens dot fr 2008-06-17 19:34 ` [Bug fortran/36553] " pault at gcc dot gnu dot org 2008-06-17 22:05 ` dominiq at lps dot ens dot fr 2008-06-18 0:19 ` jvdelisle at gcc dot gnu dot org 2008-06-18 4:28 ` jvdelisle at gcc dot gnu dot org 2008-06-18 4:57 ` jvdelisle at gcc dot gnu dot org 2008-06-18 5:34 ` burnus at gcc dot gnu dot org 2008-06-18 7:16 ` [Bug fortran/36553] Missing interface not detected in call to same file function pault at gcc dot gnu dot org 2009-04-10 20:50 ` dfranke at gcc dot gnu dot org 2009-04-10 22:41 ` dominiq at lps dot ens dot fr 2010-05-23 19:06 ` dfranke at gcc dot gnu dot org [this message] 2010-05-23 22:34 ` dfranke at gcc dot gnu dot org 2010-05-24 8:31 ` paul dot richard dot thomas at gmail dot com 2010-05-24 10:44 ` dfranke 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=20100523190603.10179.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).