This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/61162] possibly bad error location with -Wc++-compat
- From: "tromey at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 13 May 2014 07:49:58 +0000
- Subject: [Bug c/61162] possibly bad error location with -Wc++-compat
- Auto-submitted: auto-generated
- References: <bug-61162-4 at http dot gcc dot gnu dot org/bugzilla/>
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.