PR fortran/33544
* simplify.c (gfc_simplify_transfer): Only warn for short transfer when
-Wsurprising is given.
* invoke.texi: Document revised behavior.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@129488
138bc75d-0d04-0410-961f-
82ee72b054a4
+2007-10-19 Jerry DeLisle <jvdelisle@gcc.gnu.org>
+
+ PR fortran/33544
+ * simplify.c (gfc_simplify_transfer): Only warn for short transfer when
+ -Wsurprising is given.
+ * invoke.texi: Document revised behavior.
+
2007-10-18 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/33795
@item
A LOGICAL SELECT construct has three CASE statements.
+
+@item
+A TRANSFER specifies a source that is shorter than the destination.
@end itemize
@item -Wtabs
result_size = result_elt_size;
}
- if (source_size < result_size)
+ if (gfc_option.warn_surprising && source_size < result_size)
gfc_warning("Intrinsic TRANSFER at %L has partly undefined result: "
"source size %ld < result size %ld", &source->where,
(long) source_size, (long) result_size);