aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/analysis/ConstantEvaluator.cpp
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-11-22 09:05:26 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-11-22 10:11:22 +0800
commit455e51a608910d60348adb4b464590d976ce7fd7 (patch)
tree9037a4aea595c2da22d9422feceba7de72788e76 /libsolidity/analysis/ConstantEvaluator.cpp
parentd102deaec90f6f5bfe38140b459a05215d3254f9 (diff)
downloaddexon-solidity-455e51a608910d60348adb4b464590d976ce7fd7.tar.gz
dexon-solidity-455e51a608910d60348adb4b464590d976ce7fd7.tar.zst
dexon-solidity-455e51a608910d60348adb4b464590d976ce7fd7.zip
Improve cyclic constant error message
Diffstat (limited to 'libsolidity/analysis/ConstantEvaluator.cpp')
-rw-r--r--libsolidity/analysis/ConstantEvaluator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/analysis/ConstantEvaluator.cpp b/libsolidity/analysis/ConstantEvaluator.cpp
index cb8bbc05..4d546e68 100644
--- a/libsolidity/analysis/ConstantEvaluator.cpp
+++ b/libsolidity/analysis/ConstantEvaluator.cpp
@@ -90,7 +90,7 @@ void ConstantEvaluator::endVisit(Identifier const& _identifier)
if (!value->annotation().type)
{
if (m_depth > 32)
- m_errorReporter.fatalTypeError(_identifier.location(), "Cyclic constant definition.");
+ m_errorReporter.fatalTypeError(_identifier.location(), "Cyclic constant definition (or maximum recursion depth exhausted).");
ConstantEvaluator e(*value, m_errorReporter, m_depth + 1);
}