projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d59a4c8
)
compiler: Accept trailing comma after expression in type conversion.
author
Ian Lance Taylor
<ian@gcc.gnu.org>
Wed, 5 Dec 2012 01:09:41 +0000
(
01:09
+0000)
committer
Ian Lance Taylor
<ian@gcc.gnu.org>
Wed, 5 Dec 2012 01:09:41 +0000
(
01:09
+0000)
From-SVN: r194176
gcc/go/gofrontend/parse.cc
patch
|
blob
|
history
diff --git
a/gcc/go/gofrontend/parse.cc
b/gcc/go/gofrontend/parse.cc
index c13f06b9495a0f33f46179fd2aeda87ed76689a5..28737554d91ab55880c7f753f987036389eaa27e 100644
(file)
--- a/
gcc/go/gofrontend/parse.cc
+++ b/
gcc/go/gofrontend/parse.cc
@@
-2979,6
+2979,8
@@
Parse::primary_expr(bool may_be_sink, bool may_be_composite_lit,
this->advance_token();
Expression* expr = this->expression(PRECEDENCE_NORMAL, false, true,
NULL);
+ if (this->peek_token()->is_op(OPERATOR_COMMA))
+ this->advance_token();
if (this->peek_token()->is_op(OPERATOR_ELLIPSIS))
{
error_at(this->location(),