This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C PATCH] Better locinfo for -Wc++-compat (PR c/61162)
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Marek Polacek <polacek at redhat dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 13 May 2014 17:30:00 +0000
- Subject: Re: [C PATCH] Better locinfo for -Wc++-compat (PR c/61162)
- Authentication-results: sourceware.org; auth=none
- References: <20140513052347 dot GA2663 at redhat dot com>
On Tue, 13 May 2014, Marek Polacek wrote:
> Tiny patch, just use available location instead of input_location.
>
> Tested x86_64. Ok?
>
> 2014-05-13 Marek Polacek <polacek@redhat.com>
>
> PR c/61162
> * c-typeck.c (convert_for_assignment): Pass location to
> WARN_FOR_ASSIGNMENT instead of input_location.
>
> * gcc.dg/pr61162.c: New test.
OK.
--
Joseph S. Myers
joseph@codesourcery.com