re PR c++/49152 (pretty printer cannot handle iterators and other complex expressions)
authorPaolo Carlini <paolo.carlini@oracle.com>
Mon, 16 Apr 2012 15:32:22 +0000 (15:32 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 16 Apr 2012 15:32:22 +0000 (15:32 +0000)
commit051b40ff6b44e7bfc6518db84ca56ccc10f95f57
tree9a90c6960138f9284e38133c15d99290699783b9
parentd6cb05db2ecffff53e2b9f5c291e7aed3bbf59ac
re PR c++/49152 (pretty printer cannot handle iterators and other complex expressions)

/cp
2012-04-16  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/49152
* call.c (op_error): Print types; when flag_diagnostics_show_caret
is false print expressions too.
(op_error_string): Add.

/testsuite
2012-04-16  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/49152
* g++.dg/diagnostic/operator1.C: New.
* g++.dg/ext/label5.C: Adjust.
* g++.dg/ext/va-arg1.C: Likewise.
* g++.dg/other/error20.C: Likewise.
* g++.dg/other/error20.C: Likewise.
* g++.dg/other/error16.C: Likewise.
* g++.dg/other/error10.C: Likewise.
* g++.dg/parse/error30.C: Likewise.
* g++.dg/cpp0x/lambda/lambda-err1.C: Likewise.

From-SVN: r186499
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-err1.C
gcc/testsuite/g++.dg/ext/label5.C
gcc/testsuite/g++.dg/ext/va-arg1.C
gcc/testsuite/g++.dg/other/error10.C
gcc/testsuite/g++.dg/other/error16.C
gcc/testsuite/g++.dg/other/error20.C
gcc/testsuite/g++.dg/parse/error30.C