decl.c (grok_op_properties): Consistently use the location of the decl...
authorPaolo Carlini <paolo.carlini@oracle.com>
Mon, 11 Jun 2018 21:13:19 +0000 (21:13 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 11 Jun 2018 21:13:19 +0000 (21:13 +0000)
commitfafd0db149b237d2eee2f6ae420dbe3a0ca1ccbe
tree1e3525eaf4f1a5e052295e7a161178dfd78ff5b8
parent9b0607def49d8e30128253635ec44771f7c03530
decl.c (grok_op_properties): Consistently use the location of the decl...

/cp
2018-06-11  Paolo Carlini  <paolo.carlini@oracle.com>

* decl.c (grok_op_properties): Consistently use the location
of the decl; remove special casing of POSTINCREMENT_EXPR and
POSTDECREMENT_EXPR wrt default arguments.

/testsuite
2018-06-11  Paolo Carlini  <paolo.carlini@oracle.com>

* g++.dg/lookup/new2.C: Test locations too.
* g++.dg/other/ellipsis1.C: Likewise.
* g++.dg/other/operator1.C: Likewise.
* g++.dg/other/operator2.C: Likewise.
* g++.dg/overload/operator2.C: Likewise.
* g++.dg/parse/defarg11.C: Likewise.
* g++.dg/parse/operator4.C: Likewise.
* g++.dg/template/error30.C: Likewise.
* g++.dg/template/explicit-args3.C: Likewise.
* g++.dg/warn/effc1.C: Likewise.
* g++.old-deja/g++.brendan/prepost2.C: Likewise.
* g++.old-deja/g++.brendan/prepost3.C: Likewise.
* g++.old-deja/g++.bugs/900215_01.C: Likewise.
* g++.old-deja/g++.jason/conversion5.C: Likewise.
* g++.old-deja/g++.jason/operator.C: Likewise.

From-SVN: r261455
17 files changed:
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/g++.dg/lookup/new2.C
gcc/testsuite/g++.dg/other/ellipsis1.C
gcc/testsuite/g++.dg/other/operator1.C
gcc/testsuite/g++.dg/other/operator2.C
gcc/testsuite/g++.dg/overload/operator2.C
gcc/testsuite/g++.dg/parse/defarg11.C
gcc/testsuite/g++.dg/parse/operator4.C
gcc/testsuite/g++.dg/template/error30.C
gcc/testsuite/g++.dg/template/explicit-args3.C
gcc/testsuite/g++.dg/warn/effc1.C
gcc/testsuite/g++.old-deja/g++.brendan/prepost2.C
gcc/testsuite/g++.old-deja/g++.brendan/prepost3.C
gcc/testsuite/g++.old-deja/g++.bugs/900215_01.C
gcc/testsuite/g++.old-deja/g++.jason/conversion5.C
gcc/testsuite/g++.old-deja/g++.jason/operator.C