compiler: Mark erroneous constants as invalid.
authorIan Lance Taylor <ian@gcc.gnu.org>
Wed, 2 Sep 2015 20:52:42 +0000 (20:52 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 2 Sep 2015 20:52:42 +0000 (20:52 +0000)
commitdb3015e9e3b5bd8bae0cf6c629f4f8333a01f855
tree18599c3d079da6234590aae68822f2d9aff90c8f
parentce8bdcefc527fdf027c4d65454357d6cf9b73905
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

From-SVN: r227420
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/expressions.h