projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e93211
)
compiler: more consistent error message for [...]T(x)
author
Ian Lance Taylor
<ian@gcc.gnu.org>
Thu, 27 Jun 2013 19:20:08 +0000
(19:20 +0000)
committer
Ian Lance Taylor
<ian@gcc.gnu.org>
Thu, 27 Jun 2013 19:20:08 +0000
(19:20 +0000)
The message should be similar to the one for "var x [...]T",
not to the message for []T(x...).
From-SVN: r200490
gcc/go/gofrontend/parse.cc
patch
|
blob
|
history
diff --git
a/gcc/go/gofrontend/parse.cc
b/gcc/go/gofrontend/parse.cc
index
5a9feb7
..
429d91b
100644
(file)
--- 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