]> git.ipfire.org Git - thirdparty/gcc.git/commit - libcpp/ChangeLog
Implement C++14 digit separators.
authorEdward Smith-Rowland <3dw4rd@verizon.net>
Thu, 31 Oct 2013 14:01:23 +0000 (14:01 +0000)
committerEdward Smith-Rowland <emsr@gcc.gnu.org>
Thu, 31 Oct 2013 14:01:23 +0000 (14:01 +0000)
commit7057e6452ba6b205085eede49eddf37c2feab29a
tree28dc58242b9d84a0f1723c9f24e40c623e194ef1
parentb63cb15373bf384f1d644c4cfae0c60422cc3909
Implement C++14 digit separators.

libcpp:

2013-10-31  Edward Smith-Rowland  <3dw4rd@verizon.net>

        Implement C++14 digit separators.
* include/cpplib.h (cpp_options): Add digit_separators flag.
* internal.h (DIGIT_SEP(c)): New macro.
* expr.c (cpp_classify_number): Check improper placement of digit sep;
(cpp_interpret_integer): Skip over digit separators.
* init.c (lang_flags): Add digit_separators flag; (lang_defaults): Add
digit separator flags per language; (cpp_set_lang): Set
digit_separators
* lex.c (lex_number): Add digits separator to allowable characters for
C++14.

gcc/c-family:

2013-10-31  Edward Smith-Rowland  <3dw4rd@verizon.net>

        Implement C++14 digit separators.
* c-lex.c (interpret_float): Remove digit separators from scratch string
before building real literal.

gcc/testsuite:

2013-10-31  Edward Smith-Rowland  <3dw4rd@verizon.net>

        Implement C++14 digit separators.
* g++.dg/cpp1y/digit-sep.C: New.
* g++.dg/cpp1y/digit-sep-neg.C: New.
* g++.dg/cpp1y/digit-sep-cxx11-neg.C: New.

libstdc++-v3:

2013-10-31  Edward Smith-Rowland  <3dw4rd@verizon.net>

        Implement C++14 digit separators.
* include/include/bits/parse_numbers.h: Change struct _Digit<_Base, '`'>
to struct _Digit<_Base, '\''>.

From-SVN: r204260
14 files changed:
gcc/c-family/ChangeLog
gcc/c-family/c-lex.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/digit-sep-cxx11-neg.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1y/digit-sep-neg.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1y/digit-sep.C [new file with mode: 0644]
libcpp/ChangeLog
libcpp/expr.c
libcpp/include/cpplib.h
libcpp/init.c
libcpp/internal.h
libcpp/lex.c
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/parse_numbers.h