tree.c (handle_nodiscard_attribute): Improve warning location.
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 3 Jan 2019 10:00:30 +0000 (10:00 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 3 Jan 2019 10:00:30 +0000 (10:00 +0000)
commit7dae295006bed4093ecbc1fda38a457338ff859b
tree19facb6202780a0dd512e3e283e6948274c30f3a
parentd1409ea5a2f7597be28178e933d7fa695416ee78
tree.c (handle_nodiscard_attribute): Improve warning location.

/cp
2019-01-03  Paolo Carlini  <paolo.carlini@oracle.com>

* tree.c (handle_nodiscard_attribute): Improve warning location.

/testsuite
2019-01-03  Paolo Carlini  <paolo.carlini@oracle.com>

* g++.dg/cpp1z/nodiscard3.C: Test locations too.

From-SVN: r267547
gcc/cp/ChangeLog
gcc/cp/tree.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1z/nodiscard3.C