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

ian@gcc.gnu.org ian@gcc.gnu.org
Thu Dec 8 15:51:00 GMT 2016


Author: ian
Date: Thu Dec  8 15:51:25 2016
New Revision: 243442

URL: https://gcc.gnu.org/viewcvs?rev=243442&root=gcc&view=rev
Log:
    compiler: make Slice_construction_expression::do_flatten idempotent
    
    Because of the way we handle call expressions with multiple results,
    it's possible for expressions to be flattened more than once.  In the
    case of Slice_construction_expression, allocating the slice storage
    multiple times caused a compiler crash as one of the
    Temporary_statement's wound up not getting a backend expression.
    
    Test case is https://golang.org/cl/34020.
    
    Reviewed-on: https://go-review.googlesource.com/34026

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



More information about the Gcc-cvs mailing list