This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/26994] [4.2/4.3 Regression] Scalar TRANSFER - error: invalid operand to unary operator
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Nov 2006 02:31:03 -0000
- Subject: [Bug tree-optimization/26994] [4.2/4.3 Regression] Scalar TRANSFER - error: invalid operand to unary operator
- References: <bug-26994-10374@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #14 from pinskia at gcc dot gnu dot org 2006-11-12 02:31 -------
Here is the fix which I am testing:
Index: fortran/trans-expr.c
===================================================================
--- fortran/trans-expr.c (revision 118717)
+++ fortran/trans-expr.c (working copy)
@@ -3104,6 +3104,7 @@ gfc_conv_expr_reference (gfc_se * se, gf
{
var = build_decl (CONST_DECL, NULL, TREE_TYPE (se->expr));
DECL_INITIAL (var) = se->expr;
+ TREE_STATIC (var) = 1;
pushdecl (var);
}
else
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26994