This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Patch, Fortran] Fix misleading error for PROCEDURE(interface) and abstract types
- From: Tobias Burnus <burnus at net-b dot de>
- To: Daniel Kraft <d at domob dot eu>
- Cc: Fortran List <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 21 Sep 2008 12:56:16 +0200
- Subject: Re: [Patch, Fortran] Fix misleading error for PROCEDURE(interface) and abstract types
- References: <48D61813.3090607@domob.eu>
Daniel Kraft wrote:
> when compiling this program:
>
> type, abstract :: t
> contains
> procedure(foobar), deferred :: x
> end type t
> end
>
> (I think it is legal but not yet supported by gfortran because of the
> deferred binding)
Well, it would be valid if you had an interface for foobar ;-)
> I'll regression test and write a ChangeLog before committing, of course.
OK. Though, I'm wondering whether changing the order is better:
+ gfc_error ("PROCEDURE(interface) not yet implemented at %C");
"PROCEDURE(interface) at %C not yet implemented[in gfortran]"
Tobias