[Bug fortran/50981] [4.4/4.5/4.6/4.7 Regression] Wrong-code for scalarizing ELEMENTAL call with absent OPTIONAL argument
mikael at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jan 4 14:05:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50981
--- Comment #5 from Mikael Morin <mikael at gcc dot gnu.org> 2012-01-04 14:04:29 UTC ---
Author: mikael
Date: Wed Jan 4 14:04:24 2012
New Revision: 182874
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182874
Log:
PR fortran/50981
* trans.h (struct gfc_ss_info): New field data::scalar::can_be_null_ref
* trans-array.c: If the reference can be NULL, save the reference
instead of the value.
* trans-expr.c (gfc_conv_expr): If we have saved a reference,
dereference it.
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/trans-array.c
trunk/gcc/fortran/trans-expr.c
trunk/gcc/fortran/trans.h
More information about the Gcc-bugs
mailing list