https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101420

--- Comment #10 from Avi Kivity <a...@cloudius-systems.com> ---
Reproduces on trunk:

#7  0x0000000000b439af in cp_build_modify_expr (loc=1376651745,
lhs=0x7f0c55c12c60, modifycode=<optimized out>, rhs=0x7f0c55e63ee0,
complain=<optimized out>) at ../../gcc/gcc/cp/typeck.c:8919

8919                    error_at (loc, "array used as initializer");


8914              /* This routine is used for both initialization and
assignment.
8915                 Make sure the diagnostic message differentiates the
context.  */
8916              if (complain & tf_error)
8917                {
8918                  if (modifycode == INIT_EXPR)
8919                    error_at (loc, "array used as initializer");
8920                  else
8921                    error_at (loc, "invalid array assignment");
8922                }
8923              return error_mark_node;

Reply via email to