FieldExp fixed about overload error. 53/16053/3
Cedric Delamarre [Fri, 27 Feb 2015 10:24:44 +0000 (11:24 +0100)]
tl = tlist("test");
tl.f

tl = tlist("typeMoreThan8Char");
tl.f

Change-Id: Id0c164bcc4f9379bda999f854a51e622ba9d4290

scilab/modules/ast/src/cpp/ast/runvisitor.cpp

index 2da314b..250815d 100644 (file)
@@ -213,7 +213,7 @@ void RunVisitorT<T>::visitprivate(const FieldExp &e)
         {
             Ret = Overload::call(L"%" + stType + L"_e", in, 1, out, this);
         }
-        catch (ast::ScilabError &/*se*/)
+        catch (ast::ScilabError & se)
         {
             try
             {
@@ -223,6 +223,10 @@ void RunVisitorT<T>::visitprivate(const FieldExp &e)
                 {
                     Ret = Overload::call(L"%" + stType.substr(0, 8) + L"_e", in, 1, out, this);
                 }
+                else
+                {
+                    throw se;
+                }
             }
             catch (ast::ScilabError & se)
             {