aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-07-11 19:23:16 +0800
committerDaniel Kirchner <daniel@ekpyron.org>2018-07-12 18:48:18 +0800
commita1f54f4e40811e526541f3a54f6a19dd42c8e688 (patch)
tree9f660cbb07e96be8ae49f16e084b1f2a0f0e9127 /libsolidity
parentc438b73f689b904152f4b8b636579317fb55e60a (diff)
downloaddexon-solidity-a1f54f4e40811e526541f3a54f6a19dd42c8e688.tar.gz
dexon-solidity-a1f54f4e40811e526541f3a54f6a19dd42c8e688.tar.zst
dexon-solidity-a1f54f4e40811e526541f3a54f6a19dd42c8e688.zip
Require storage location.
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/analysis/ReferencesResolver.cpp17
1 files changed, 4 insertions, 13 deletions
diff --git a/libsolidity/analysis/ReferencesResolver.cpp b/libsolidity/analysis/ReferencesResolver.cpp
index 58b659f7..dfcbf888 100644
--- a/libsolidity/analysis/ReferencesResolver.cpp
+++ b/libsolidity/analysis/ReferencesResolver.cpp
@@ -377,19 +377,10 @@ void ReferencesResolver::endVisit(VariableDeclaration const& _variable)
{
typeLoc = DataLocation::Storage;
if (_variable.isLocalVariable())
- {
- if (_variable.sourceUnit().annotation().experimentalFeatures.count(ExperimentalFeature::V050))
- typeError(
- _variable.location(),
- "Data location must be specified as either \"memory\" or \"storage\"."
- );
- else
- m_errorReporter.warning(
- _variable.location(),
- "Variable is declared as a storage pointer. "
- "Use an explicit \"storage\" keyword to silence this warning."
- );
- }
+ typeError(
+ _variable.location(),
+ "Data location must be specified as either \"memory\" or \"storage\"."
+ );
}
}
else