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/51578] New: [4.3/4.4/4.5/4.6/4.7 Regression] Date: Fri, 16 Dec 2011 13:46:00 -0000 [thread overview] Message-ID: <bug-51578-4@http.gcc.gnu.org/bugzilla/> (raw) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51578 Bug #: 51578 Summary: [4.3/4.4/4.5/4.6/4.7 Regression] Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Keywords: rejects-valid Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned@gcc.gnu.org ReportedBy: burnus@gcc.gnu.org Reported by Billy Backer at http://gcc.gnu.org/ml/fortran/2011-12/msg00093.html The program uses (sub2): use mod2 ! Imports "mod1" and provides "axx" use mod1, oxx=>axx but using "axx" fails: print*,axx 1 Error: Symbol 'axx' at (1) has no IMPLICIT type It works if one reverts the order (sub1). I could not find anything in the standard which indicates that not both symbols are imported. I wonder whether it is related to: use mod1, oxx=>axx use mod1 in that case "axx" is not imported. (Cf. paragraph 7 of Fortran 2008's "11.2.2 The USE statement and use association"). See also http://j3-fortran.org/pipermail/j3/2011-December/004944.html module mod1 integer :: axx=2 end module mod1 module mod2 use mod1 end module mod2 subroutine sub1 use mod1, oxx=>axx use mod2 implicit none print*,axx?? !line compiles OK for gfortran, fails for Intel end subroutine sub1 subroutine sub2 use mod2 use mod1, oxx=>axx implicit none print*,axx??!line fails to compile for gfortran, OK for Intel end subroutine sub2
next reply other threads:[~2011-12-16 13:36 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-12-16 13:46 burnus at gcc dot gnu.org [this message] 2011-12-16 14:16 ` [Bug fortran/51578] " burnus at gcc dot gnu.org 2011-12-16 14:31 ` [Bug fortran/51578] [4.3/4.4/4.5/4.6/4.7 Regression] Import of same symbol via different modules and renaming burnus at gcc dot gnu.org 2011-12-17 13:21 ` dominiq at lps dot ens.fr 2011-12-19 20:46 ` burnus at gcc dot gnu.org 2012-01-09 13:11 ` burnus at gcc dot gnu.org 2012-01-09 13:13 ` 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-51578-4@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: 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).