rjmccall added a comment.
If you just want a better diagnostic, there's quite a bit of machinery already
set up to give more specific errors about why such-and-such l-value isn't
modifiable. There may even be vector-specific diagnostics for that already,
just triggered from the wrong place in the code.
cfe-commits mailing list