From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21009 invoked by alias); 16 Nov 2014 22:56:10 -0000 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 Received: (qmail 20924 invoked by uid 48); 16 Nov 2014 22:56:06 -0000 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/63205] [OOP] Wrongly rejects type = class (for identical declared type) Date: Sun, 16 Nov 2014 22:56:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: dominiq at lps dot ens.fr X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: pault at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-11/txt/msg01448.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63205 --- Comment #5 from Dominique d'Humieres --- > The attached patch runs the testcase below without memory leaks but > causes regressions in: > class_allocate_7.f03 > class_to_type_2.f90 > typebound_operator_7.f03 > typebound_operator_8.f03 With the patch in comment 4 I don't see these regressions: [Book15] build_w/gcc% make -k check-gfortran RUNTESTFLAGS="dg.exp=class* --target_board=unix'{-m32,-m64}'" ... === gfortran Summary for unix/-m64 === # of expected passes 1091 # of unsupported tests 2 === gfortran Summary === # of expected passes 2182 # of unsupported tests 4 [Book15] build_w/gcc% make -k check-gfortran RUNTESTFLAGS="dg.exp=typebound* --target_board=unix'{-m32,-m64}'" ... === gfortran Summary for unix/-m64 === # of expected passes 846 # of expected failures 1 === gfortran Summary === # of expected passes 1692 # of expected failures 2 There is no more ICE for the reduced test in comment 1 (1), but a segmentation fault. However I doubt the code is valid. Thanks for the patch. Further testing in progress.