https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101420
--- Comment #11 from Iain Sandoe <iains at gcc dot gnu.org> --- (In reply to Avi Kivity from comment #10) > 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; thanks, probably the compiler needs to be built with -g to get the backtrace. this looks like a dup of PR 96056 - but I am happy to check the reduced case.