This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/64626] C++14 single quote should not always be a digit separator
- From: "emsr at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 17 Mar 2015 00:51:27 +0000
- Subject: [Bug c++/64626] C++14 single quote should not always be a digit separator
- Auto-submitted: auto-generated
- References: <bug-64626-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64626
--- Comment #3 from emsr at gcc dot gnu.org ---
Author: emsr
Date: Tue Mar 17 00:50:55 2015
New Revision: 221470
URL: https://gcc.gnu.org/viewcvs?rev=221470&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/cpp1y/pr64626-1.C
trunk/gcc/testsuite/g++.dg/cpp1y/pr64626-2.C
Modified:
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/cpp1y/digit-sep-neg.C
trunk/libcpp/ChangeLog
trunk/libcpp/lex.c