[Bug c/61162] possibly bad error location with -Wc++-compat

tromey at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue May 13 07:50:00 GMT 2014


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

--- Comment #7 from Tom Tromey <tromey at gcc dot gnu.org> ---
(In reply to Marek Polacek from comment #6)

> I'd prefer the RHS location here; it's the RHS that's being converted.

I was hoping to automate some conversion from C to C++ using
the error locations.
So from this perspective, something relatively consistent would be nice.
It could be the RHS or it could be the "=", for my purposes they
are equally good.  I tend to think of the "=" as being the "reason
for the conversion", but I wouldn't want to make any claims for it
beyond that.



More information about the Gcc-bugs mailing list