http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53152
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC|lopezibanez at gmail dot |manu at gcc dot gnu.org |com | --- Comment #4 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2012-05-04 11:27:15 UTC --- (In reply to comment #3) > How could we in principle fix this? Pass down from cp_parser_binary_expression > the location of the operator token, through build_x_binary_op -> build_new_op > -> build_new_op_1 -> op_error? Boring but straightforward. Or something else > entirely? I'm just guessing, really. Since we don't pass down the expression itself, I don't see any other way than passing down the location. In general almost all build_* function should be build_*(location_t loc,...). Thanks for doing this, it will improve the caret a lot (and perhaps the debugging experience).