r227193 - in /trunk/gcc/go/gofrontend: MERGE le...

ian@gcc.gnu.org ian@gcc.gnu.org
Tue Aug 25 21:17:00 GMT 2015


Author: ian
Date: Tue Aug 25 21:17:47 2015
New Revision: 227193

URL: https://gcc.gnu.org/viewcvs?rev=227193&root=gcc&view=rev
Log:
    compiler: Accept numeric literals with leading zeroes.
    
    When a numeric literal with leading zeroes was seen in the parser, it
    would only be accepted if it were a valid hex or octal literal.  Any
    invalid numeric literal would be split up into multiple tokens: the
    valid hex/octal literal followed by the rest of the characters.
    Instead, when scanning a numeric literal with leading zeroes, always
    accept the number and give an appropriate error if the accepted number
    does not fit in the expected base.
    
    Fixes golang/go#11532, golang/go#11533.
    
    Reviewed-on: https://go-review.googlesource.com/13791

Modified:
    trunk/gcc/go/gofrontend/MERGE
    trunk/gcc/go/gofrontend/lex.cc



More information about the Gcc-cvs mailing list