diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE index 96a1e9ffe55df..8ece73d811665 100644 --- a/gcc/go/gofrontend/MERGE +++ b/gcc/go/gofrontend/MERGE @@ -1,4 +1,4 @@ -721c778adb8f99d8a6b7795dbad86013ccc9ba91 +9e68d67d65fd72b9b4f163f2f26e15cd0d3e2cd2 The first line of this file holds the git revision number of the last merge done from the gofrontend repository. diff --git a/gcc/go/gofrontend/parse.cc b/gcc/go/gofrontend/parse.cc index 9d6a8c6f4a646..5c493700de68d 100644 --- a/gcc/go/gofrontend/parse.cc +++ b/gcc/go/gofrontend/parse.cc @@ -419,6 +419,8 @@ Parse::array_type(bool may_use_ellipsis) } Type* element_type = this->type(); + if (element_type->is_error_type()) + return Type::make_error_type(); return Type::make_array_type(element_type, length); }