------- Comment #9 from burnus at gcc dot gnu dot org 2010-08-20 17:50 ------- (In reply to comment #8) > Created an attachment (id=21532) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21532&action=view) [edit] > Possibly final patch, though not yet regtested.
Fails for: integer :: x(2) x = [1,2] print *, RESHAPE([x], [1,2]) end Probably due to trans-intrinsics.c change of copying the formal arg list - even though it looks OK in the debugger. I could not yet trace down where exactly it fails. GDB/valgrind show the line: Invalid read of size 4 at 0x57A7F9: gfc_conv_procedure_call (trans-expr.c:2755) by 0x58AF4E: conv_generic_with_optional_char_arg.constprop.32 (trans-intrinsic.c:3326) by 0x58BBDA: gfc_conv_intrinsic_function (trans-intrinsic.c:4917) but trans-expr.c:2755 is the line where gfc_conv_procedure_call is defined, which does not help me with debugging :-( -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36158