r252368 - in /branches/range-gen2/gcc/go/gofron...
aldyh@gcc.gnu.org
aldyh@gcc.gnu.org
Wed Sep 13 16:45:00 GMT 2017
Author: aldyh
Date: Wed Sep 13 16:45:29 2017
New Revision: 252368
URL: https://gcc.gnu.org/viewcvs?rev=252368&root=gcc&view=rev
Log:
compiler: fix buglet in lshift type determination
It's possible to construct an lshift expression using unsafe.Sizeof
that is technically a compile-time constant but can't be evaluated
without going through backend methods. In this case, insure that
Type::make_non_abstract_type is called on the numeric operand of the
shift (as opposed to leaving as abstract), to avoid an assert later on
in the compiler flow.
Fixes golang/go#21372.
Reviewed-on: https://go-review.googlesource.com/54370
Modified:
branches/range-gen2/gcc/go/gofrontend/MERGE
branches/range-gen2/gcc/go/gofrontend/expressions.cc
More information about the Gcc-cvs
mailing list