[Patch, Fortran] PR34137 ENTRY fixes: allow in modules, fix diagnostics

Jerry DeLisle jvdelisle@verizon.net
Sun Nov 18 18:39:00 GMT 2007


Tobias Burnus wrote:
> :ADDPATCH fortran:
> 
> Hi all,
> 
> when trying to fix PR34079 (incl. ENTRY), I encountered first that
> BIND(C) does not work for ENTRY and, secondly, some deficits in the
> Fortran 95 support of ENTRY.
> 
> 
> a) ENTRY was rejected in a module as the master function had no type.
> 
> Entry may not be used as internal procedure, but it is allowed as module
> procedure. Or in words of the standard (F95/F2003):
> 
> Constraint: An entry-stmt may appear only in an external-subprogram or
> module-subprogram. An entry-stmt shall not appear within an
> executable-construct.
> 
> C1253 (R1235) An entry-stmt shall appear only in an external-subprogram
> or module-subprogram. An entry-stmt shall not appear within an
> executable-construct.
> 
> 
> b) It was possible to assign to the ENTRY name, even if a RESULT was
> specified. This lead to an ICE later on.
> 
> Build and regression tested on x86-64. OK for the trunk?
> 
> Tobias

OK, thanks!

Jerry



More information about the Gcc-patches mailing list