From fbb22910cfa4e4567b46fc8b74ccfad92fa745d8 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Thu, 2 Jul 2015 18:54:41 +0000 Subject: re PR preprocessor/53690 ([C++11] \u0000 and \U00000000 are wrongly encoded as U+0001.) /libcpp 2015-07-02 Paolo Carlini PR c++/53690 * charset.c (_cpp_valid_ucn): Add cppchar_t * parameter and change return type to bool. Fix encoding of \u0000 and \U00000000 in C++. (convert_ucn): Adjust call. * lex.c (forms_identifier_p): Likewise. * internal.h (_cpp_valid_ucn): Adjust declaration. /gcc/testsuite 2015-07-02 Paolo Carlini PR c++/53690 * g++.dg/cpp/pr53690.C: New. From-SVN: r225353 --- libcpp/ChangeLog | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'libcpp/ChangeLog') diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index 4e2980222b3..ab259c583d7 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -1,3 +1,12 @@ +2015-07-02 Paolo Carlini + + PR c++/53690 + * charset.c (_cpp_valid_ucn): Add cppchar_t * parameter and change + return type to bool. Fix encoding of \u0000 and \U00000000 in C++. + (convert_ucn): Adjust call. + * lex.c (forms_identifier_p): Likewise. + * internal.h (_cpp_valid_ucn): Adjust declaration. + 2015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net> Implement N4197 - Adding u8 character literals @@ -5,7 +14,7 @@ (struct cpp_options): Add utf8_char_literals. * init.c (struct lang_flags): Add utf8_char_literals; (struct lang_flags lang_defaults): Add column for utf8_char_literals. - * macro.c (stringify_arg()): Treat CPP_UTF8CHAR token; + * macro.c (stringify_arg()): Treat CPP_UTF8CHAR token; * expr.c (cpp_userdef_char_remove_type(), cpp_userdef_char_add_type()): Treat CPP_UTF8CHAR_USERDEF, CPP_UTF8CHAR tokens; (cpp_userdef_char_p()): Treat CPP_UTF8CHAR_USERDEF token; -- cgit v1.2.3