r227191 - in /trunk/gcc/go/gofrontend: MERGE ex...

ian@gcc.gnu.org ian@gcc.gnu.org
Tue Aug 25 20:31:00 GMT 2015


Author: ian
Date: Tue Aug 25 20:31:51 2015
New Revision: 227191

URL: https://gcc.gnu.org/viewcvs?rev=227191&root=gcc&view=rev
Log:
    compiler: Allow string slices with start index == length.
    
    Avoid an off-by-one error when checking the start index of a string
    slice by allowing the start index to be the string length instead
    of the string length - 1.
    
    Fixes golang/go#11522.
    
    Reviewed-on: https://go-review.googlesource.com/13030

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



More information about the Gcc-cvs mailing list