]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c/ChangeLog
re PR c/61162 (possibly bad error location with -Wc++-compat)
authorMarek Polacek <polacek@redhat.com>
Tue, 13 May 2014 17:41:12 +0000 (17:41 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 13 May 2014 17:41:12 +0000 (17:41 +0000)
commit2b107f6b91d1b44ec60bd5ce8b51218a84aac98a
tree71a054b65773de4a41bafae1593739847a1bbd73
parent6052140cec44f7605a43a968af90797c36e47992
re PR c/61162 (possibly bad error location with -Wc++-compat)

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.

From-SVN: r210393
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr61162.c [new file with mode: 0644]