On 06/04/2012 08:36 AM, Dodji Seketeli wrote:
-             /* Build the assignment expression.  */
+             /* Build the assignment expression.  Its default
+                location is the location of the '=' token.  */
+             input_location = loc;
              expr = build_x_modify_expr (loc, expr,
                                          assignment_operator,
                                          rhs,

Hmm, I meant to say this before, but apparently forgot: We should the old input_location after build_x_modify_expr returns.

This is the result of a weird behaviour of DejaGNU, I think.

Weird, I don't see how that could happen.  The full regexp in dg.exp is

(^|\n)(\[^\n\]+$line\[^\n\]*($pattern)\[^\n\]*\n?)+

I don't see how that could swallow a newline and some of another diagnostic. But your workaround is OK.

Jason

Reply via email to