This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]