From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10270 invoked by alias); 12 Nov 2012 23:17:27 -0000 Received: (qmail 9525 invoked by uid 48); 12 Nov 2012 23:17:07 -0000 From: "damian at rouson dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/55297] New: 4.8 Regression: type-bound operator clashes with abstract interface Date: Mon, 12 Nov 2012 23:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: damian at rouson dot net X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-11/txt/msg01079.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55297 Bug #: 55297 Summary: 4.8 Regression: type-bound operator clashes with abstract interface Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned@gcc.gnu.org ReportedBy: damian@rouson.net $ cat athlete.f90 module athlete_module type athlete contains procedure :: negative generic :: operator(-) => negative end type abstract interface integer function sum_interface(this) import athlete class(athlete) this end function end interface contains integer function negative(this) class(athlete) ,intent(in) :: this end function end module $ gfortran-mp-4.7 -c athlete.f90 $ gfortran-mp-4.8 -c athlete.f90 athlete.f90:5.29: generic :: operator(-) => negative 1 Error: Entity 'negative' at (1) is already present in the interface wlan-clients-2916:gnu rouson$ gfortran-mp-4.8 --version GNU Fortran (MacPorts gcc48 4.8-20121021_0) 4.8.0 20121021 (experimental)