public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "burnus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/52916] [4.8 Regression] 481.wrf in SPEC CPU 2006 failed to build
Date: Tue, 10 Apr 2012 10:29:00 -0000	[thread overview]
Message-ID: <bug-52916-4-6zPBeX8uUX@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-52916-4@http.gcc.gnu.org/bugzilla/>

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52916

Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW

--- Comment #3 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-04-10 10:27:37 UTC ---
Found the information I was looking for at
http://www.cesm.ucar.edu/models/cesm1.0/cesm/cesmBbrowser/html_code/esmf_wrf_timemgr/ESMF_TimeMod.F90.html


The problem is that the PRIVATE module procedure is used as specific procedure
for an operator (which is PUBLIC).

Thus, one cannot set the TREE_PUBLIC() = 0 for PRIVATE procedures, if
(a) the generic procedure / user-defined operator/assignment is not also
PRIVATE
(b) a procedure is used as type-bound procedure in a nonabstract nonprivate
TYPE declaration.
[(c) if the (sub)module has a submodule. (Note: Currently, no submodules are
supported.)]

The simplest might be to add another attribute - and set it during resolution.


Workaround: Undo the "build_function_decl" part of the commit Rev. 186223 - or
revert the complete commit.


Test case, which will produce at link time with any optimization level:
  undefined reference to `__m_MOD_bar'

! ----- FILE 1 ----
module m
  interface gen
    module procedure bar
  end interface gen
  private :: bar
contains
  subroutine bar()
    print *, "bar"
  end subroutine bar
end module m

! ----- FILE 2 ----
use m
call gen()
end


  parent reply	other threads:[~2012-04-10 10:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-09 16:50 [Bug fortran/52916] New: " hjl.tools at gmail dot com
2012-04-09 19:10 ` [Bug fortran/52916] " tkoenig at gcc dot gnu.org
2012-04-10 10:03 ` burnus at gcc dot gnu.org
2012-04-10 10:29 ` burnus at gcc dot gnu.org [this message]
2012-04-11 19:12 ` burnus at gcc dot gnu.org
2012-04-12 13:57 ` izamyatin at gmail dot com
2012-04-15  5:55 ` burnus at gcc dot gnu.org
2012-04-16 21:39 ` burnus at gcc dot gnu.org
2012-04-18  8:21 ` burnus at gcc dot gnu.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=bug-52916-4-6zPBeX8uUX@http.gcc.gnu.org/bugzilla/ \
    --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).