OSDN Git Service

2008-08-22 Daniel Kraft <d@domob.eu>
authordomob <domob@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 22 Aug 2008 20:36:12 +0000 (20:36 +0000)
committerdomob <domob@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 22 Aug 2008 20:36:12 +0000 (20:36 +0000)
commit89b9a6ab732c28a6a2d400ce30069cd50f70f58f
treec47e4e93dbfac7b1bb17ee74e10bfa450db5d256
parent8a9b6c4a4eb03cb243d67292ac3f1e15b968d04a
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@139499 138bc75d-0d04-0410-961f-82ee72b054a4
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]