This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/49152] Unhelpful diagnostic for iterator dereference


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49152

--- Comment #40 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2012-04-16 15:32:28 UTC ---
Author: paolo
Date: Mon Apr 16 15:32:22 2012
New Revision: 186499

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=186499
Log:
/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.

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]