[Patch, Fortran] PR 30239: Warn on duplicate function result type declaration

Steve Kargl sgk@troutmask.apl.washington.edu
Fri Aug 22 20:04:00 GMT 2008


On Fri, Aug 22, 2008 at 07:15:14PM +0200, Daniel Kraft wrote:
>
> Index: gcc/fortran/invoke.texi
> ===================================================================
> --- gcc/fortran/invoke.texi	(revision 139436)
> +++ gcc/fortran/invoke.texi	(working copy)
> @@ -757,6 +757,11 @@ A LOGICAL SELECT construct has three CAS
>  
>  @item
>  A TRANSFER specifies a source that is shorter than the destination.
> +
> +@item
> +The type of a function result is declared more than once with the same type; if
> +@option{-pedantic} or standard-conforming mode is enabled, this is an error
> +instead in any case.
>  @end itemize

In the above the text isn't very clear.  I'd change the semicolon to
a period and delete the last 4 words of the 2nd sentence.

Although I'm no longer a maintainer, the patch looks OK to me.
-- 
Steve



More information about the Gcc-patches mailing list