This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/64626] C++14 single quote should not always be a digit separator


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]