public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/33646]  New: [4.3 Regression] Gcc 4.3 failed to compile tonto in SPEC CPU 2006
@ 2007-10-03 18:39 hjl at lucon dot org
  2007-10-03 20:33 ` [Bug fortran/33646] " hjl at lucon dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: hjl at lucon dot org @ 2007-10-03 18:39 UTC (permalink / raw)
  To: gcc-bugs

Gcc 4.3 revision 128980 generates:

str.fppized.f90:337.29:

      module procedure create
                            1
Error: Ambiguous interfaces 'create' and 'create' in generic interface
'create_' at (1) 
str.fppized.f90:337.29:

Revision 128885 is OK.


-- 
           Summary: [4.3 Regression] Gcc 4.3 failed to compile tonto in SPEC
                    CPU 2006
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hjl at lucon dot org


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


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

* [Bug fortran/33646] [4.3 Regression] Gcc 4.3 failed to compile tonto in SPEC CPU 2006
  2007-10-03 18:39 [Bug fortran/33646] New: [4.3 Regression] Gcc 4.3 failed to compile tonto in SPEC CPU 2006 hjl at lucon dot org
@ 2007-10-03 20:33 ` hjl at lucon dot org
  2007-10-03 20:55 ` hjl at lucon dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: hjl at lucon dot org @ 2007-10-03 20:33 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from hjl at lucon dot org  2007-10-03 20:33 -------
[hjl@gnu-23 build_base_o2.0000]$ cat bar.f90 
module BAR_MODULE
   implicit none
   private
   public    create_
   interface create_
      module procedure create
   end interface
contains
   subroutine create(self)
    character(*) :: self
      pointer :: self
      allocate(self)
   end subroutine
end
[hjl@gnu-23 build_base_o2.0000]$ /usr/gcc-4.3/bin/gfortran -c bar.f90
[hjl@gnu-23 build_base_o2.0000]$ cat foo.f90 
module FOO_MODULE
   use BAR_MODULE
   implicit none
   private
   public    create_
   interface create_
      module procedure create
   end interface

   public    create_copy_
   interface create_copy_
      module procedure create_copy
   end interface
contains

   subroutine create(self)
    character(*) :: self
      pointer :: self
      nullify(self)
      allocate(self)

      self = " "
   end subroutine

   subroutine create_copy(self,s)
    character(*) :: self
      pointer :: self
      character(*) :: s
      call create_(self)
   end subroutine
end
[hjl@gnu-23 build_base_o2.0000]$ /usr/gcc-4.3/bin/gfortran -c foo.f90
foo.f90:7.29:

      module procedure create
                            1
Error: Ambiguous interfaces 'create' and 'create' in generic interface
'create_' at (1)
foo.f90:7.29:

      module procedure create
                            1
Warning: Ambiguous interfaces 'create' and 'create' in generic interface
'create_' at (1)
[hjl@gnu-23 build_base_o2.0000]$ 


-- 


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


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

* [Bug fortran/33646] [4.3 Regression] Gcc 4.3 failed to compile tonto in SPEC CPU 2006
  2007-10-03 18:39 [Bug fortran/33646] New: [4.3 Regression] Gcc 4.3 failed to compile tonto in SPEC CPU 2006 hjl at lucon dot org
  2007-10-03 20:33 ` [Bug fortran/33646] " hjl at lucon dot org
@ 2007-10-03 20:55 ` hjl at lucon dot org
  2007-10-03 21:21 ` pault at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: hjl at lucon dot org @ 2007-10-03 20:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from hjl at lucon dot org  2007-10-03 20:55 -------
It should be:

[hjl@gnu-27 pr33646]$ cat bar.f90 
module BAR_MODULE
   implicit none
   private
   public    create_
   interface create_
      module procedure create
   end interface
   type system_type
       integer(kind=kind(1)) :: max_memory_used
   end type

contains

   subroutine create(self)
    type(system_type) :: self
      pointer :: self
      allocate(self)
   end subroutine

end
[hjl@gnu-27 pr33646]$ cat bar.f90 
module BAR_MODULE
   implicit none
   private
   public    create_
   interface create_
      module procedure create
   end interface
   type system_type
       integer(kind=kind(1)) :: max_memory_used
   end type

contains

   subroutine create(self)
    type(system_type) :: self
      pointer :: self
      allocate(self)
   end subroutine

end
[hjl@gnu-27 pr33646]$ make
gfortran -c bar.f90
gfortran -c foo.f90
foo.f90:7.29:

      module procedure create
                            1
Error: Ambiguous interfaces 'create' and 'create' in generic interface
'create_'
 at (1)
foo.f90:7.29:

      module procedure create
                            1
Warning: Ambiguous interfaces 'create' and 'create' in generic interface
'create
_' at (1)
make[1]: *** [foo.o] Error 1


-- 


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


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

* [Bug fortran/33646] [4.3 Regression] Gcc 4.3 failed to compile tonto in SPEC CPU 2006
  2007-10-03 18:39 [Bug fortran/33646] New: [4.3 Regression] Gcc 4.3 failed to compile tonto in SPEC CPU 2006 hjl at lucon dot org
  2007-10-03 20:33 ` [Bug fortran/33646] " hjl at lucon dot org
  2007-10-03 20:55 ` hjl at lucon dot org
@ 2007-10-03 21:21 ` pault at gcc dot gnu dot org
  2007-10-03 21:32 ` dominiq at lps dot ens dot fr
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pault at gcc dot gnu dot org @ 2007-10-03 21:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pault at gcc dot gnu dot org  2007-10-03 21:21 -------
hj,

It's me - I'll revert the patch that did this, right away.

Cheers

Paul


-- 


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


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

* [Bug fortran/33646] [4.3 Regression] Gcc 4.3 failed to compile tonto in SPEC CPU 2006
  2007-10-03 18:39 [Bug fortran/33646] New: [4.3 Regression] Gcc 4.3 failed to compile tonto in SPEC CPU 2006 hjl at lucon dot org
                   ` (2 preceding siblings ...)
  2007-10-03 21:21 ` pault at gcc dot gnu dot org
@ 2007-10-03 21:32 ` dominiq at lps dot ens dot fr
  2007-10-03 21:38 ` [Bug fortran/33646] [4.3 Regression] Gcc 4.3 revision 128954 failed " hjl at lucon dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: dominiq at lps dot ens dot fr @ 2007-10-03 21:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from dominiq at lps dot ens dot fr  2007-10-03 21:32 -------
> It's me

I have warned you;-)


-- 


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


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

* [Bug fortran/33646] [4.3 Regression] Gcc 4.3 revision 128954 failed tonto in SPEC CPU 2006
  2007-10-03 18:39 [Bug fortran/33646] New: [4.3 Regression] Gcc 4.3 failed to compile tonto in SPEC CPU 2006 hjl at lucon dot org
                   ` (3 preceding siblings ...)
  2007-10-03 21:32 ` dominiq at lps dot ens dot fr
@ 2007-10-03 21:38 ` hjl at lucon dot org
  2007-10-04  4:47 ` pault at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: hjl at lucon dot org @ 2007-10-03 21:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from hjl at lucon dot org  2007-10-03 21:38 -------
Revision 128954:

http://gcc.gnu.org/ml/gcc-cvs/2007-10/msg00058.html

is the cause.


-- 

hjl at lucon dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pault at gcc dot gnu dot org
            Summary|[4.3 Regression] Gcc 4.3    |[4.3 Regression] Gcc 4.3
                   |failed to compile tonto in  |revision 128954 failed tonto
                   |SPEC CPU 2006               |in SPEC CPU 2006


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


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

* [Bug fortran/33646] [4.3 Regression] Gcc 4.3 revision 128954 failed tonto in SPEC CPU 2006
  2007-10-03 18:39 [Bug fortran/33646] New: [4.3 Regression] Gcc 4.3 failed to compile tonto in SPEC CPU 2006 hjl at lucon dot org
                   ` (4 preceding siblings ...)
  2007-10-03 21:38 ` [Bug fortran/33646] [4.3 Regression] Gcc 4.3 revision 128954 failed " hjl at lucon dot org
@ 2007-10-04  4:47 ` pault at gcc dot gnu dot org
  2007-10-04 13:43 ` hjl at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pault at gcc dot gnu dot org @ 2007-10-04  4:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from pault at gcc dot gnu dot org  2007-10-04 04:47 -------
It's reverted - sorry HJ.

Paul


-- 

pault at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED


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


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

* [Bug fortran/33646] [4.3 Regression] Gcc 4.3 revision 128954 failed tonto in SPEC CPU 2006
  2007-10-03 18:39 [Bug fortran/33646] New: [4.3 Regression] Gcc 4.3 failed to compile tonto in SPEC CPU 2006 hjl at lucon dot org
                   ` (5 preceding siblings ...)
  2007-10-04  4:47 ` pault at gcc dot gnu dot org
@ 2007-10-04 13:43 ` hjl at gcc dot gnu dot org
  2007-10-04 15:39 ` hjl at gcc dot gnu dot org
  2007-12-03  4:17 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: hjl at gcc dot gnu dot org @ 2007-10-04 13:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from hjl at gcc dot gnu dot org  2007-10-04 13:42 -------
Subject: Bug 33646

Author: hjl
Date: Thu Oct  4 13:42:48 2007
New Revision: 129008

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=129008
Log:
Mention PR fortran/33646 in revision 129000.

Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug fortran/33646] [4.3 Regression] Gcc 4.3 revision 128954 failed tonto in SPEC CPU 2006
  2007-10-03 18:39 [Bug fortran/33646] New: [4.3 Regression] Gcc 4.3 failed to compile tonto in SPEC CPU 2006 hjl at lucon dot org
                   ` (6 preceding siblings ...)
  2007-10-04 13:43 ` hjl at gcc dot gnu dot org
@ 2007-10-04 15:39 ` hjl at gcc dot gnu dot org
  2007-12-03  4:17 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: hjl at gcc dot gnu dot org @ 2007-10-04 15:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from hjl at gcc dot gnu dot org  2007-10-04 15:39 -------
Subject: Bug 33646

Author: hjl
Date: Thu Oct  4 15:39:11 2007
New Revision: 129015

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=129015
Log:
2007-10-04  H.J. Lu  <hongjiu.lu@intel.com>

        PR fortran/33646
        * gfortran.dg/pr33646.f90: New file.

Added:
    trunk/gcc/testsuite/gfortran.dg/pr33646.f90
Modified:
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug fortran/33646] [4.3 Regression] Gcc 4.3 revision 128954 failed tonto in SPEC CPU 2006
  2007-10-03 18:39 [Bug fortran/33646] New: [4.3 Regression] Gcc 4.3 failed to compile tonto in SPEC CPU 2006 hjl at lucon dot org
                   ` (7 preceding siblings ...)
  2007-10-04 15:39 ` hjl at gcc dot gnu dot org
@ 2007-12-03  4:17 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-12-03  4:17 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.3.0


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


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

end of thread, other threads:[~2007-12-03  4:17 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-03 18:39 [Bug fortran/33646] New: [4.3 Regression] Gcc 4.3 failed to compile tonto in SPEC CPU 2006 hjl at lucon dot org
2007-10-03 20:33 ` [Bug fortran/33646] " hjl at lucon dot org
2007-10-03 20:55 ` hjl at lucon dot org
2007-10-03 21:21 ` pault at gcc dot gnu dot org
2007-10-03 21:32 ` dominiq at lps dot ens dot fr
2007-10-03 21:38 ` [Bug fortran/33646] [4.3 Regression] Gcc 4.3 revision 128954 failed " hjl at lucon dot org
2007-10-04  4:47 ` pault at gcc dot gnu dot org
2007-10-04 13:43 ` hjl at gcc dot gnu dot org
2007-10-04 15:39 ` hjl at gcc dot gnu dot org
2007-12-03  4:17 ` pinskia at gcc dot gnu dot 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).