PR fortran/50981
commite2cac5e5e0dfb0a3a8ea9a215d65e1880522d152
authormikael <mikael@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 Jan 2012 14:04:24 +0000 (4 14:04 +0000)
committermikael <mikael@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 Jan 2012 14:04:24 +0000 (4 14:04 +0000)
tree35ecccc993dae3c75c7845b088145f81382da192
parent29e4c389f1bea83cdd82513eb628d471d4bf4924
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182874 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/fortran/trans-expr.c
gcc/fortran/trans.h