decl.c (grokdeclarator): Use rich_location::add_range in three more places; include...
authorPaolo Carlini <paolo.carlini@oracle.com>
Mon, 9 Jul 2018 07:59:22 +0000 (07:59 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 9 Jul 2018 07:59:22 +0000 (07:59 +0000)
commit7b3bc05474bb87c6e7f786f528f82b9de3429203
tree86a22a457750776ff45941561c4b1f80a42fccae
parent1dc9cf5d9fec61fd0bd32f7e4026f5e259d3e016
decl.c (grokdeclarator): Use rich_location::add_range in three more places; include gcc-rich-location.h.

/cp
2018-07-09  Paolo Carlini  <paolo.carlini@oracle.com>

* decl.c (grokdeclarator): Use rich_location::add_range in three
more places; include gcc-rich-location.h.

/testsuite
2018-07-09  Paolo Carlini  <paolo.carlini@oracle.com>

* g++.dg/diagnostic/long-short.C: New.
* g++.dg/diagnostic/signed-unsigned.C: Likewise.
* g++.dg/diagnostic/virtual-friend.C: Likewise.
* g++.old-deja/g++.brendan/crash11.C: Adjust.

From-SVN: r262512
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/diagnostic/long-short.C [new file with mode: 0644]
gcc/testsuite/g++.dg/diagnostic/signed-unsigned.C [new file with mode: 0644]
gcc/testsuite/g++.dg/diagnostic/virtual-friend.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.brendan/crash11.C