public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "daniel.price at monash dot edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/58099] New: over-zealous Error pointer error checking in gfortran 4.8
Date: Wed, 07 Aug 2013 06:12:00 -0000	[thread overview]
Message-ID: <bug-58099-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 58099
           Summary: over-zealous Error pointer error checking in gfortran
                    4.8
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: daniel.price at monash dot edu

I'm having an issue with gfortran 4.8 that is blocking compilation of my public
visualisation code SPLASH (reported by several users). The issue is to do with
mismatched properties of procedure pointers when the procedure being pointed to
has the pure attribute:

../src/kernels.f90:77.13:

    wfunc => w_wendlandc6
             1
Error: Interface mismatch in procedure pointer assignment at (1): Mismatch in
PURE attribute

While I can provide a workaround for this by removing the pure attribute, I
think this is either a bug or a feature that I don't understand, since it must
be possible to point to pure procedures with a procedure pointer. However, I
cannot find a way to do this that compiles with gfortran 4.8. Note that this is
only an issue in 4.8, did not exist in any previous version.

The relevant module is attached and can be compiled independently of any other
code, so should be easy to reproduce.

Please let me know if it is a bug/can be fixed or not.

Thanks,

Daniel Price

versioning as follows:
-------------
$ gfortran-mp-4.8 -v
Using built-in specs.
COLLECT_GCC=gfortran-mp-4.8
COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/x86_64-apple-darwin12/4.8.1/lto-wrapper
Target: x86_64-apple-darwin12
Configured with: ../gcc-4.8.1/configure --prefix=/opt/local
--build=x86_64-apple-darwin12
--enable-languages=c,c++,objc,obj-c++,lto,fortran,java
--libdir=/opt/local/lib/gcc48 --includedir=/opt/local/include/gcc48
--infodir=/opt/local/share/info --mandir=/opt/local/share/man
--datarootdir=/opt/local/share/gcc-4.8 --with-local-prefix=/opt/local
--with-system-zlib --disable-nls --program-suffix=-mp-4.8
--with-gxx-include-dir=/opt/local/include/gcc48/c++/ --with-gmp=/opt/local
--with-mpfr=/opt/local --with-mpc=/opt/local --with-ppl=/opt/local
--with-cloog=/opt/local --enable-cloog-backend=isl
--disable-cloog-version-check --enable-stage1-checking --disable-multilib
--enable-lto --enable-libstdcxx-time --with-as=/opt/local/bin/as
--with-ld=/opt/local/bin/ld --with-ar=/opt/local/bin/ar
--with-bugurl=https://trac.macports.org/newticket --with-pkgversion='MacPorts
gcc48 4.8.1_1'
Thread model: posix
gcc version 4.8.1 (MacPorts gcc48 4.8.1_1) 
-------------


             reply	other threads:[~2013-08-07  6:12 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-07  6:12 daniel.price at monash dot edu [this message]
2013-08-07  6:14 ` [Bug fortran/58099] " daniel.price at monash dot edu
2013-08-07  8:48 ` andy at gwentswordclub dot co.uk
2013-08-07  9:03 ` [Bug fortran/58099] [F03] over-zealous procedure " janus at gcc dot gnu.org
2013-08-07  9:13 ` andy at gwentswordclub dot co.uk
2013-08-07  9:26 ` [Bug fortran/58099] [4.8/4.9 Regression] [F03] over-zealous procedure-pointer error checking janus at gcc dot gnu.org
2013-08-07  9:35 ` janus at gcc dot gnu.org
2013-08-07 12:17 ` janus at gcc dot gnu.org
2013-08-08  7:25 ` burnus at gcc dot gnu.org
2013-08-08  7:42 ` janus at gcc dot gnu.org
2013-08-10 12:57 ` janus at gcc dot gnu.org
2013-08-16 15:29 ` jakub at gcc dot gnu.org
2013-09-20  6:22 ` burnus at gcc dot gnu.org
2013-09-20  7:44 ` janus at gcc dot gnu.org
2013-09-20  8:25 ` janus at gcc dot gnu.org
2013-09-20  8:28 ` janus at gcc dot gnu.org
2013-09-20  9:13 ` janus at gcc dot gnu.org
2013-09-20 10:38 ` janus at gcc dot gnu.org
2013-09-20 10:44 ` janus at gcc dot gnu.org
2013-10-16  9:51 ` jakub at gcc dot gnu.org
2013-10-17  6:22 ` burnus at gcc dot gnu.org
2013-11-16 23:13 ` janus at gcc dot gnu.org
2013-11-17 12:14 ` janus at gcc dot gnu.org
2013-11-17 13:46 ` janus at gcc dot gnu.org
2013-12-02 22:10 ` burnus at gcc dot gnu.org
2013-12-03 23:03 ` burnus at gcc dot gnu.org
2013-12-08 21:34 ` burnus at gcc dot gnu.org
2013-12-08 21:42 ` burnus at gcc dot gnu.org
2013-12-08 23:56 ` daniel.price at monash dot edu
2013-12-09 23:17 ` 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-58099-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: 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).