]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR fortran/30239 (duplicate data type assignment not detected)
authorDaniel Kraft <d@domob.eu>
Fri, 22 Aug 2008 20:36:12 +0000 (22:36 +0200)
committerDaniel Kraft <domob@gcc.gnu.org>
Fri, 22 Aug 2008 20:36:12 +0000 (22:36 +0200)
commitfee3292b1460655f81a06c160de992638749373a
treec47e4e93dbfac7b1bb17ee74e10bfa450db5d256
parent9b410dd0ecd3b952c53d2a201756efb7dc24f8b4
re PR fortran/30239 (duplicate data type assignment not detected)

2008-08-22  Daniel Kraft  <d@domob.eu>

PR fortran/30239
* symbol.c (gfc_add_type): Warn on -Wsurprising if a function-result
type is re-declared but neither -pedantic nor -std=f* is given and so
this is no error.
* invoke.texi (-Wsurprising): Document this new behaviour.

From-SVN: r139499
gcc/fortran/ChangeLog
gcc/fortran/invoke.texi
gcc/fortran/symbol.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/duplicate_type_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/duplicate_type_2.f90 [new file with mode: 0644]