public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/63733] [4.8/4.9/5 Regression] [OOP]  wrong resolution for OPERATOR generics
Date: Sun, 16 Nov 2014 19:30:00 -0000	[thread overview]
Message-ID: <bug-63733-4-lgx7jY2N7P@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-63733-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63733

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-11-16
      Known to work|                            |4.7.4
            Summary|[OOP]  wrong resolution for |[4.8/4.9/5 Regression]
                   |OPERATOR generics           |[OOP]  wrong resolution for
                   |                            |OPERATOR generics
     Ever confirmed|0                           |1
      Known to fail|                            |4.8.3, 4.9.2, 5.0

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Assuming that the gurus' all agree that answer should be

 sum_parent
 sum_child
 sum_child

I confirm this PR as a regression. The related history is pretty chaotic:

[macbook] f90/bug% /opt/gcc/gcc4.8p-187200/bin/gfortran pr63733.f90
[macbook] f90/bug% a.out
 sum_parent
 sum_parent
 sum_child
[macbook] f90/bug% /opt/gcc/gcc4.8p-187291/bin/gfortran pr63733.f90
[macbook] f90/bug% a.out
 sum_parent
 sum_child
 sum_child

likely r187226 (pr53255), back ported to 4.7 as r187232.

[macbook] f90/bug% /opt/gcc/gcc4.8p-188694/bin/gfortran pr63733.f90
[macbook] f90/bug% a.out
 sum_parent
 sum_child
 sum_child
[macbook] f90/bug% /opt/gcc/gcc4.8p-189336/bin/gfortran pr63733.f90
pr63733.f90:7.32:

     generic   :: operator(+) => sum
                                1
Error: Entity 'sum_parent' at (1) is already present in the interface
pr63733.f90:35.6:

  use overwrite
      1
Fatal Error: Can't open module file 'overwrite.mod' for reading at (1): No such
file or directory

likely r189022 (pr49591).

[macbook] f90/bug% /opt/gcc/gcc4.8a-195701/bin/gfortran pr63733.f90
pr63733.f90:7.32:

     generic   :: operator(+) => sum
                                1
Error: Entity 'sum_parent' at (1) is already present in the interface
pr63733.f90:35.6:

  use overwrite
      1
Fatal Error: Can't open module file 'overwrite.mod' for reading at (1): No such
file or directory
[macbook] f90/bug% /opt/gcc/gcc4.8p-195731/bin/gfortran pr63733.f90
[macbook] f90/bug% a.out
 sum_parent
 sum_parent
 sum_child

likely r195729 (pr54195).


  reply	other threads:[~2014-11-16 19:30 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-04  9:48 [Bug fortran/63733] New: " sfilippone at uniroma2 dot it
2014-11-16 19:30 ` dominiq at lps dot ens.fr [this message]
2014-11-19 13:28 ` [Bug fortran/63733] [4.8/4.9/5 Regression] " rguenth at gcc dot gnu.org
2014-11-26 17:22 ` jakub at gcc dot gnu.org
2014-12-19 13:23 ` jakub at gcc dot gnu.org
2015-01-08 13:14 ` janus at gcc dot gnu.org
2015-01-08 13:30 ` janus at gcc dot gnu.org
2015-01-08 13:57 ` janus at gcc dot gnu.org
2015-01-08 20:13 ` janus at gcc dot gnu.org
2015-01-11 22:01 ` janus at gcc dot gnu.org
2015-01-12 16:14 ` janus at gcc dot gnu.org
2015-01-12 19:41 ` janus at gcc dot gnu.org
2015-01-12 20:18 ` janus 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-63733-4-lgx7jY2N7P@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).