------- Comment #14 from jsm28 at gcc dot gnu dot org 2005-11-04 01:23 ------- Subject: Bug 17964
Author: jsm28 Date: Fri Nov 4 01:23:54 2005 New Revision: 106469 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=106469 Log: gcc: PR c++/17964 * diagnostic.c (diagnostic_set_info_translated): New function. (diagnostic_set_info): Use it. Add comment. * diagnostic.h (diagnostic_set_info_translated): Declare. gcc/cp: * error.c (cp_cpp_error): New function. * cp-tree.h (cp_cpp_error): Declare. * parser.c (cp_lexer_new_main): Set CPP option client_diagnostic and error callback after lexing. gcc/testsuite: * g++.dg/cpp/string-1.C: New test. libcpp: * include/cpplib.h (struct cpp_options): Add client_diagnostic. (struct cpp_callbacks): Add error. * errors.c (cpp_error): If client_diagnostic, use error callback. * charset.c (convert_escape): Don't use %03o in diagnostic. Added: branches/gcc-4_0-branch/gcc/testsuite/g++.dg/cpp/string-1.C - copied unchanged from r106454, trunk/gcc/testsuite/g++.dg/cpp/string-1.C Modified: branches/gcc-4_0-branch/gcc/ChangeLog branches/gcc-4_0-branch/gcc/cp/ChangeLog branches/gcc-4_0-branch/gcc/cp/cp-tree.h branches/gcc-4_0-branch/gcc/cp/error.c branches/gcc-4_0-branch/gcc/cp/parser.c branches/gcc-4_0-branch/gcc/diagnostic.c branches/gcc-4_0-branch/gcc/diagnostic.h branches/gcc-4_0-branch/gcc/testsuite/ChangeLog branches/gcc-4_0-branch/libcpp/ChangeLog branches/gcc-4_0-branch/libcpp/charset.c branches/gcc-4_0-branch/libcpp/errors.c branches/gcc-4_0-branch/libcpp/include/cpplib.h -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17964