mirror of git://gcc.gnu.org/git/gcc.git
compiler: Fix struct inheriting interface with varargs method.
From-SVN: r185060
This commit is contained in:
parent
0bd5f4dd20
commit
b0d623bb21
|
@ -3744,8 +3744,12 @@ Function_type::copy_with_receiver(Type* receiver_type) const
|
||||||
go_assert(!this->is_method());
|
go_assert(!this->is_method());
|
||||||
Typed_identifier* receiver = new Typed_identifier("", receiver_type,
|
Typed_identifier* receiver = new Typed_identifier("", receiver_type,
|
||||||
this->location_);
|
this->location_);
|
||||||
return Type::make_function_type(receiver, this->parameters_,
|
Function_type* ret = Type::make_function_type(receiver, this->parameters_,
|
||||||
this->results_, this->location_);
|
this->results_,
|
||||||
|
this->location_);
|
||||||
|
if (this->is_varargs_)
|
||||||
|
ret->set_is_varargs();
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make a function type.
|
// Make a function type.
|
||||||
|
|
Loading…
Reference in New Issue