From e86c4602c583696a466da5b431c8f5c8e8e98217 Mon Sep 17 00:00:00 2001 From: Lu Guanqun Date: Thu, 5 Feb 2015 01:11:53 +0800 Subject: [PATCH] fix string comparision bug revealed by previous test case This is due to refactoring of m_names using ASTPointer. --- AST.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AST.cpp b/AST.cpp index 6028c07cf..dfb677f7e 100644 --- a/AST.cpp +++ b/AST.cpp @@ -505,7 +505,7 @@ void FunctionCall::checkTypeRequirements() // check duplicate names for (size_t i = 0; i < m_names.size(); i++) { for (size_t j = i + 1; j < m_names.size(); j++) { - if (m_names[i] == m_names[j]) + if (*m_names[i] == *m_names[j]) BOOST_THROW_EXCEPTION(createTypeError("Duplicate named argument.")); } }