From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23155 invoked by alias); 11 Feb 2013 10:09:58 -0000 Received: (qmail 23058 invoked by uid 48); 11 Feb 2013 10:09:40 -0000 From: "janus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/56284] [OOP] ICE with alternate return in type-bound procedure Date: Mon, 11 Feb 2013 10:09: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-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: janus at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Summary Message-ID: In-Reply-To: References: 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: 2013-02/txt/msg01045.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56284 janus at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[OOP] ICE with contained |[OOP] ICE with alternate |routine which |return in type-bound |inappropriately compares a |procedure |string and a number | --- Comment #3 from janus at gcc dot gnu.org 2013-02-11 10:09:39 UTC --- (In reply to comment #2) > > subroutine getRecord ( * ) > end subroutine Ok, I admit that I had to look up the asterisk thingy. It's called "alternate return" and is a obsolescent feature since at least F95. According to PR 40881, we should have a warning message for this, but it does not seem to trigger for the test case here. Should be fixed I guess (just as the ICE, although combining obsolescent features like alternate return with new stuff such as type binding is surely not recommended).