mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Disallow using reserved identifiers in Yul
This commit is contained in:
parent
7df986539f
commit
2b09fa14e1
@ -570,6 +570,12 @@ void AsmAnalyzer::expectValidIdentifier(YulString _identifier, SourceLocation co
|
||||
"\"" + _identifier.str() + "\" is not a valid identifier (contains consecutive dots)."
|
||||
);
|
||||
|
||||
if (m_dialect.reservedIdentifier(_identifier))
|
||||
m_errorReporter.declarationError(
|
||||
5017_error,
|
||||
_location,
|
||||
"The identifier \"" + _identifier.str() + "\" is reserved and can not be used."
|
||||
);
|
||||
}
|
||||
|
||||
void AsmAnalyzer::expectValidType(YulString _type, SourceLocation const& _location)
|
||||
|
Loading…
Reference in New Issue
Block a user