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

ian@gcc.gnu.org ian@gcc.gnu.org
Tue Oct 20 20:44:00 GMT 2015


Author: ian
Date: Tue Oct 20 20:44:23 2015
New Revision: 229098

URL: https://gcc.gnu.org/viewcvs?rev=229098&root=gcc&view=rev
Log:
    compiler: Report errors after evaluating invalid constant.
    
    The fix for golang/go#11541 made the assertion that getting an invalid
    Numeric_constant after evaluating an invalid constant must result in
    an error in a binary expression.  However, a Numeric_constant can be
    invalid if it is unset, which occurs when either operand cannot be
    converted to the right type.  These errors are issued after the
    Numeric_constant is lowered.
    
    Fixes golang/go#12615.
    
    Reviewed-on: https://go-review.googlesource.com/14646

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



More information about the Gcc-cvs mailing list