public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/63733] New: [OOP]  wrong resolution for OPERATOR generics
@ 2014-11-04  9:48 sfilippone at uniroma2 dot it
  2014-11-16 19:30 ` [Bug fortran/63733] [4.8/4.9/5 Regression] " dominiq at lps dot ens.fr
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: sfilippone at uniroma2 dot it @ 2014-11-04  9:48 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 63733
           Summary: [OOP]  wrong resolution for OPERATOR generics
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sfilippone at uniroma2 dot it

Created attachment 33881
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33881&action=edit
test case

Hi,
The attached test case, slightly modified from an original by Alberto F.
Martin-Huertas in https://gcc.gnu.org/ml/fortran/2014-10/msg00124.html, changes
behaviour across versions; in particular, 4.7.3 seems correct and all other
versions I tried are not. 
According to Steve Lionel https://software.intel.com/en-us/forums/topic/534799 
the current Intel and gfortran behaviour is wrong, and this is also my
impression. 
We have not had a definite answer at 
https://groups.google.com/forum/#!topic/comp.lang.fortran/aFNK3FXqTUA

Again, my reading of the standard is that 4.7.3 is correct and the others are
wrong, but of course I will gladly accept a correction; either way, at least
one version of gfortran is wrong. 
------------------------------------------------------------------
[sfilippo@jacobi F2003]$ module switch gnu gnu/4.6.4
        gnu/4.6.4 - loads the GNU 4.6.4 compilers suite

        Version 4.6.4

[sfilippo@jacobi F2003]$ gfortran -o test_ov test_ov.f90
[sfilippo@jacobi F2003]$ ./test_ov 
 sum_parent
 sum_parent
 sum_child
[sfilippo@jacobi F2003]$ module switch gnu gnu/4.7.3
        gnu/4.7.3 - loads the GNU 4.7.3 compilers suite

        Version 4.7.3

[sfilippo@jacobi F2003]$ gfortran -o test_ov test_ov.f90
[sfilippo@jacobi F2003]$ ./test_ov 
 sum_parent
 sum_child
 sum_child
[sfilippo@jacobi F2003]$ module switch gnu gnu/4.8.3
        gnu/4.8.3 - loads the GNU 4.8.3 compilers suite

        Version 4.8.3

[sfilippo@jacobi F2003]$ gfortran -o test_ov test_ov.f90
[sfilippo@jacobi F2003]$ ./test_ov 
 sum_parent
 sum_parent
 sum_child
[sfilippo@jacobi F2003]$ module switch gnu gnu/4.9.1
        gnu/4.9.1 - loads the GNU 4.9.1 compilers suite

        Version 4.9.1

[sfilippo@jacobi F2003]$ gfortran -o test_ov test_ov.f90
[sfilippo@jacobi F2003]$ ./test_ov 
 sum_parent
 sum_parent
 sum_child
[sfilippo@jacobi F2003]$ module switch gnu gnu/5.0.0 
        gnu/5.0.0 - loads the GNU 5.0.0-pre compilers suite

        Version 5.0.0

[sfilippo@jacobi F2003]$ gfortran -o test_ov test_ov.f90
[sfilippo@jacobi F2003]$ ./test_ov 
 sum_parent
 sum_parent
 sum_child
[sfilippo@jacobi F2003]$


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2015-01-12 20:18 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-04  9:48 [Bug fortran/63733] New: [OOP] wrong resolution for OPERATOR generics sfilippone at uniroma2 dot it
2014-11-16 19:30 ` [Bug fortran/63733] [4.8/4.9/5 Regression] " dominiq at lps dot ens.fr
2014-11-19 13:28 ` 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

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