re PR fortran/55935 ([OOP] Fortran fronted has ADDR_EXPRs of FUNCTION_DECLs with...
authorJakub Jelinek <jakub@gcc.gnu.org>
Sun, 13 Jan 2013 12:33:43 +0000 (13:33 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sun, 13 Jan 2013 12:33:43 +0000 (13:33 +0100)
commit9d60be386676d883d4a8bd2feaace130fb905a0f
tree190944d72880df83808c66199c3e4f272b8161d5
parente7f49d92ca829a0a51c1cb3ae26ebb0cb08f0fed
re PR fortran/55935 ([OOP] Fortran fronted has ADDR_EXPRs of FUNCTION_DECLs with bogus BLOCK)

PR fortran/55935
* gimple-fold.c (get_symbol_constant_value): Call
unshare_expr.
(fold_gimple_assign): Don't call unshare_expr here.
(fold_ctor_reference): Call unshare_expr.

* trans-expr.c (gfc_conv_structure): Call
unshare_expr_without_location on the ctor elements.

From-SVN: r195136
gcc/ChangeLog
gcc/fortran/ChangeLog
gcc/fortran/trans-expr.c
gcc/gimple-fold.c