diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2013-06-27 19:20:08 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2013-06-27 19:20:08 +0000 |
commit | d4134e85985c8cab8e83863e0b11840486028fee (patch) | |
tree | 31afb90b0f34976e8b401e5a958bb026055c1c62 | |
parent | 8e932114ee7933014b63c43bf2508006e9837c44 (diff) | |
download | gcc-d4134e85985c8cab8e83863e0b11840486028fee.zip gcc-d4134e85985c8cab8e83863e0b11840486028fee.tar.gz gcc-d4134e85985c8cab8e83863e0b11840486028fee.tar.bz2 |
compiler: more consistent error message for [...]T(x)
The message should be similar to the one for "var x [...]T",
not to the message for []T(x...).
From-SVN: r200490
-rw-r--r-- | gcc/go/gofrontend/parse.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/go/gofrontend/parse.cc b/gcc/go/gofrontend/parse.cc index 5a9feb7..429d91b 100644 --- a/gcc/go/gofrontend/parse.cc +++ b/gcc/go/gofrontend/parse.cc @@ -3040,7 +3040,7 @@ Parse::primary_expr(bool may_be_sink, bool may_be_composite_lit, && t->array_type()->length()->is_nil_expression()) { error_at(ret->location(), - "invalid use of %<...%> in type conversion"); + "use of %<[...]%> outside of array literal"); ret = Expression::make_error(loc); } else |