This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/63733] [4.8/4.9/5 Regression] [OOP] wrong resolution for OPERATOR generics


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).


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]