public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "sfilippone at uniroma2 dot it" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/45494] New: [OOP] Wrong dummy argument not rejected Date: Thu, 02 Sep 2010 10:16:00 -0000 [thread overview] Message-ID: <bug-45494-9410@http.gcc.gnu.org/bugzilla/> (raw) Hello, The attached code is rejected by XLF 13.1 and NAG, but is accepted by gfortran. The problem is that the second instance of the call to the MOLD method passes an object that is not type compatible. ==========================gfortran===================== [sfilippo@localhost bug24]$ gfortran -v Using built-in specs. COLLECT_GCC=gfortran COLLECT_LTO_WRAPPER=/usr/local/gnu46/libexec/gcc/x86_64-unknown-linux-gnu/4.6.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ../gcc/configure --prefix=/usr/local/gnu46 --enable-languages=c,c++,fortran : (reconfigured) ../gcc/configure --prefix=/usr/local/gnu46 --enable-languages=c,c++,fortran Thread model: posix gcc version 4.6.0 20100902 (experimental) (GCC) [sfilippo@localhost bug24]$ gfortran -c bug24.f03 [sfilippo@localhost bug24]$ ==================== xlf =================================== bash-3.2$ which xlf /opt/IBM/compilers/xlf13.1/usr/bin/xlf bash-3.2$ xlf2003 -c bug24.f03 ** foo_mod === End of Compilation 1 === ** foo_2_mod === End of Compilation 2 === ** foo_3_mod === End of Compilation 3 === "bug24.f03", line 43.17: 1513-061 (S) Actual argument attributes do not match those specified by an accessible explicit interface. ** bar === End of Compilation 4 === 1501-511 Compilation failed for file bug24.f03. -- Summary: [OOP] Wrong dummy argument not rejected Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sfilippone at uniroma2 dot it GCC build triplet: x86_64-unknown-linux-gnu GCC host triplet: x86_64-unknown-linux-gnu GCC target triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45494
next reply other threads:[~2010-09-02 10:16 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-09-02 10:16 sfilippone at uniroma2 dot it [this message] 2010-09-02 10:16 ` [Bug fortran/45494] " sfilippone at uniroma2 dot it 2010-09-02 12:55 ` janus 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=bug-45494-9410@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).