This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/56284] [OOP] ICE with alternate return in type-bound procedure
- From: "janus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 11 Feb 2013 10:09:39 +0000
- Subject: [Bug fortran/56284] [OOP] ICE with alternate return in type-bound procedure
- Auto-submitted: auto-generated
- References: <bug-56284-4@http.gcc.gnu.org/bugzilla/>
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).