re PR c++/64626 (C++14 single quote should not always be a digit separator)
authorEdward Smith-Rowland <3dw4rd@verizon.net>
Tue, 17 Mar 2015 00:50:55 +0000 (00:50 +0000)
committerEdward Smith-Rowland <emsr@gcc.gnu.org>
Tue, 17 Mar 2015 00:50:55 +0000 (00:50 +0000)
commita5858a3dfff043b6693ab4b59ee5a41d3e20bad7
tree38dfcce3281f3ac2a7852f6219bf0a7d6d8dee9f
parentec19b718ba4ebbb6148c3837a1a6f37c4a04bafd
re PR c++/64626 (C++14 single quote should not always be a digit separator)

libcpp/

2015-03-16  Edward Smith-Rowland  <3dw4rd@verizon.net>

PR c++/64626
* lex.c (lex_number): If a number ends with digit-seps (') skip back
and let lex_string take them.

gcc/testsuite/

2015-03-16  Edward Smith-Rowland  <3dw4rd@verizon.net>

PR c++/64626
g++.dg/cpp1y/pr64626-1.C: New.
g++.dg/cpp1y/pr64626-2.C: New.
g++.dg/cpp1y/digit-sep-neg.C: Adjust errors and warnings.

From-SVN: r221470
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/digit-sep-neg.C
gcc/testsuite/g++.dg/cpp1y/pr64626-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1y/pr64626-2.C [new file with mode: 0644]
libcpp/ChangeLog
libcpp/lex.c