mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-15 14:01:04 +08:00
compiler: Error if receiver and parameter have same name.
From-SVN: r203455
This commit is contained in:
parent
d621811443
commit
08580c3477
@ -744,6 +744,8 @@ Parse::signature(Typed_identifier* receiver, Location location)
|
||||
return NULL;
|
||||
|
||||
Parse::Names names;
|
||||
if (receiver != NULL)
|
||||
names[receiver->name()] = receiver;
|
||||
if (params != NULL)
|
||||
this->check_signature_names(params, &names);
|
||||
if (results != NULL)
|
||||
|
Loading…
x
Reference in New Issue
Block a user