decl.c (grok_op_properties): Consistently use the location of the decl...
authorPaolo Carlini <paolo@gcc.gnu.org>
Mon, 11 Jun 2018 21:13:41 +0000 (21:13 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 11 Jun 2018 21:13:41 +0000 (21:13 +0000)
/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: r261456

gcc/testsuite/ChangeLog

index 3ded9ffe653fb6e4aba37d0ff629f1e492109bf7..f063be719e88b5ab43e621f8e40373801f60fd23 100644 (file)
@@ -1,3 +1,21 @@
+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.
+
 2018-06-11  Martin Sebor  <msebor@redhat.com>
 
        PR tree-optimization/86083