Re: [patch, wwwdocs, committed] Document -Winteger-division for Fortran
On Wed, 1 Jul 2015, Thomas Koenig wrote: I just committed the following patch to the WWW docs. Thanks. In the description, are the integers constants truncated or (the result of) the division? An error was reported by Gerald's script, but that seems to have been spurious. At least, there was no error on revalidation. Sorry about that! This happens perhaps once a year and I believe is due to a server or connection timeout somewhere. Your change and the page per see indeed appear fine. erald
Re: [patch, wwwdocs, committed] Document -Winteger-division for Fortran
On Wed, Jul 01, 2015 at 11:39:09PM +0200, Gerald Pfeifer wrote: On Wed, 1 Jul 2015, Thomas Koenig wrote: I just committed the following patch to the WWW docs. Thanks. In the description, are the integers constants truncated or (the result of) the division? The result is truncated. real x x = 4/5 end is truncated to 'x = 0'. The remainder of 4 is tossed. -- Steve
[patch, wwwdocs, committed] Document -Winteger-division for Fortran
Hello world, I just committed the following patch to the WWW docs. An error was reported by Gerald's script, but that seems to have been spurious. At least, there was no error on revalidation. Regards Thomas 2015-07-01 Thomas Koenig tkoe...@netcologne.de * gcc-6/changes.html: Document -Winteger-division for Fortran. Index: changes.html === RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-6/changes.html,v retrieving revision 1.12 diff -r1.12 changes.html 67a68,70 liThe code-Winteger-division/code option has been added, which warns about divisions of integer constants which are truncated. This option is included in code-Wall/code by default./li