projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d8f63a
)
Permit new of a function type.
author
Ian Lance Taylor
<ian@gcc.gnu.org>
Wed, 11 May 2011 19:56:39 +0000
(19:56 +0000)
committer
Ian Lance Taylor
<ian@gcc.gnu.org>
Wed, 11 May 2011 19:56:39 +0000
(19:56 +0000)
From-SVN: r173672
gcc/go/gofrontend/expressions.cc
patch
|
blob
|
history
diff --git
a/gcc/go/gofrontend/expressions.cc
b/gcc/go/gofrontend/expressions.cc
index 005173b90c8f15d4d2306b564389d5be9724ddf7..c7b8ca0d41104742f46baafb410081be9e5b3f3d 100644
(file)
--- a/
gcc/go/gofrontend/expressions.cc
+++ b/
gcc/go/gofrontend/expressions.cc
@@
-10624,9
+10624,6
@@
class Allocation_expression : public Expression
do_determine_type(const Type_context*)
{ }
- void
- do_check_types(Gogo*);
-
Expression*
do_copy()
{ return new Allocation_expression(this->type_, this->location()); }
@@
-10639,15
+10636,6
@@
class Allocation_expression : public Expression
Type* type_;
};
-// Check the type of an allocation expression.
-
-void
-Allocation_expression::do_check_types(Gogo*)
-{
- if (this->type_->function_type() != NULL)
- this->report_error(_("invalid new of function type"));
-}
-
// Return a tree for an allocation expression.
tree