For the following gfortran should print: "Intrinsic TRANSFER at %L has partly undefined result: " "source size %ld < result size %ld but this does not work. character(len=20) :: str str = transfer(10,str) end Ditto for character( KIND=4 ,len=20)
I have a patch.
The commit seems to have gone to "[Bug middle-end/37221] Missed early loop-unroll optimization - causes 40% degradation on SPU".
Author: tkoenig Date: Fri Aug 5 23:06:18 2011 New Revision: 177491 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177491 Log: 2011-08-05 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/37211 * fortran/ChangeLog: Correct PR number from last commit. * testsuite/ChangeLog: Likewise. Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/testsuite/ChangeLog
*sigh* The real one was at http://gcc.gnu.org/ml/gcc-cvs/2011-08/msg00498.html Fixed on trunk, closing.
On Linux/x86, I got FAIL: gfortran.dg/c_ptr_tests_16.f90 -O (test for excess errors) Excess errors: /export/gnu/import/git/gcc-x32/gcc/testsuite/gfortran.dg/c_ptr_tests_16.f90:58:9: Error: Can't convert INTEGER(4) to TYPE(c_funptr) at (1) /export/gnu/import/git/gcc-x32/gcc/testsuite/gfortran.dg/c_ptr_tests_16.f90:49:11: Error: Can't convert INTEGER(4) to TYPE(c_ptr) at (1)
(In reply to comment #5) > On Linux/x86, I got > > FAIL: gfortran.dg/c_ptr_tests_16.f90 -O (test for excess errors) > Excess errors: > /export/gnu/import/git/gcc-x32/gcc/testsuite/gfortran.dg/c_ptr_tests_16.f90:58:9: > Error: Can't convert INTEGER(4) to TYPE(c_funptr) at (1) > /export/gnu/import/git/gcc-x32/gcc/testsuite/gfortran.dg/c_ptr_tests_16.f90:49:11: > Error: Can't convert INTEGER(4) to TYPE(c_ptr) at (1) Tracked in PR50004.