fix [1;[]] after https://codereview.scilab.org/#/c/17221
[scilab.git] / scilab / modules / ast / src / cpp / ast / run_MatrixExp.hpp
index b66cc5c..bd82b96 100644 (file)
@@ -312,7 +312,14 @@ void RunVisitorT<T>::visitprivate(const MatrixExp &e)
 
                 continue;
             }
-
+            else
+            {//[]
+                if (pGT->isDouble() && pGT->getAs<types::Double>()->isEmpty())
+                {
+                    pGT->killMe();
+                    continue;
+                }
+            }
 
             //check dimension
             if (pGT->getCols() != pGTResult->getCols())