projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97d2b65
)
Tweak handling of invalid function signature for function literal.
author
Ian Lance Taylor
<ian@gcc.gnu.org>
Wed, 15 Dec 2010 22:42:30 +0000
(22:42 +0000)
committer
Ian Lance Taylor
<ian@gcc.gnu.org>
Wed, 15 Dec 2010 22:42:30 +0000
(22:42 +0000)
From-SVN: r167879
gcc/go/gofrontend/parse.cc
patch
|
blob
|
history
diff --git
a/gcc/go/gofrontend/parse.cc
b/gcc/go/gofrontend/parse.cc
index 29ea7e9afa9b1bfef2120aee6ab76648da7b0228..a0d87dc8c6a8d8337c90d45553c630f2c073749f 100644
(file)
--- a/
gcc/go/gofrontend/parse.cc
+++ b/
gcc/go/gofrontend/parse.cc
@@
-2513,10
+2513,7
@@
Parse::function_lit()
Function_type* type = this->signature(NULL, location);
if (type == NULL)
- {
- this->block();
- return Expression::make_error(location);
- }
+ type = Type::make_function_type(NULL, NULL, NULL, location);
// For a function literal, the next token must be a '{'. If we
// don't see that, then we may have a type expression.