Harmonize diagnostics for invalid reference binding
authorJonathan Wakely <jwakely@redhat.com>
Sat, 6 Aug 2016 00:07:05 +0000 (01:07 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Sat, 6 Aug 2016 00:07:05 +0000 (01:07 +0100)
commitfa76f2c63032aaa2214c015d7d5f33257bd3ed66
treeea519a736c6f4389516d7420be5eb3f11c936b41
parent3e9f67e6a2c13e7e78d1e34dadfdc8d96176e9fe
Harmonize diagnostics for invalid reference binding

gcc/cp:

* call.c (convert_like_real): Harmonize diagnostics for invalid
reference binding.

gcc/testsuite:

* call.c (convert_like_real): Harmonize diagnostics for invalid
reference binding.
* g++.dg/conversion/pr16333.C: Adjust dg-error regexp.
* g++.dg/conversion/pr41426.C: Likewise.
* g++.dg/conversion/pr66211.C: Likewise.
* g++.dg/cpp1y/lambda-init9.C: Likewise.
* g++.dg/init/ref8.C: Likewise.
* g++.old-deja/g++.law/cvt20.C: Likewise.
* g++.old-deja/g++.mike/p9732c.C: Likewise.

From-SVN: r239184
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/conversion/pr16333.C
gcc/testsuite/g++.dg/conversion/pr41426.C
gcc/testsuite/g++.dg/conversion/pr66211.C
gcc/testsuite/g++.dg/cpp1y/lambda-init9.C
gcc/testsuite/g++.dg/init/ref8.C
gcc/testsuite/g++.old-deja/g++.law/cvt20.C
gcc/testsuite/g++.old-deja/g++.mike/p9732c.C