compiler: Mark erroneous constants as invalid.
commit71a452167ecfda1a31ad9bb0a7421bfe6ff0ee2c
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 2 Sep 2015 20:52:42 +0000 (2 20:52 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 2 Sep 2015 20:52:42 +0000 (2 20:52 +0000)
tree18599c3d079da6234590aae68822f2d9aff90c8f
parent519627d346694305aa677dfeca6ad391714f1f1e
compiler: Mark erroneous constants as invalid.

    When the compiler failed to evaluate a numeric constant because
    because it was erroneous, there was no way for parent nodes to
    discover the error and lower themselves into error nodes.  This patch
    now uses the NC_INVALID enumerator to mark numeric constants with a
    known, reported error.

    Fixes golang/go#11541.

    Reviewed-on: https://go-review.googlesource.com/13904

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227420 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/expressions.h