* [#15839](https://bugzilla.scilab.org/15839): `gsort`: the only sparse possible input were real or complex vectors, and only with the `g` method.
* [#15842](https://bugzilla.scilab.org/15842): `unique` could not process 2D sparse matrices.
* [#16106](https://bugzilla.scilab.org/16106): Xcos sciblk4 user-defined blocks did not handle opar and odstate/oz correctly.
+* [#16122](https://bugzilla.scilab.org/16122): concat polynomials with <> var did not raise an error.
* [#16274](https://bugzilla.scilab.org/16274): assert_checkequal() did not considered equal matching Nan or void elements in (nested) containers.
* [#16337](https://bugzilla.scilab.org/16337): The 3rd output of `[U,km,ku] = unique(..)` was not implemented.
* [#16342](https://bugzilla.scilab.org/16342): `strcat()` was much slower in Scilab 6.0.2.
* [#16373](https://bugzilla.scilab.org/16373): Scilab Crashed or showing wrong output when running on Arm processor
* [#16459](https://bugzilla.scilab.org/16459): The display of one column hypermatrix was wrong.
* [#16463](https://bugzilla.scilab.org/16463): `matrix(sparse([]),[0 0])` yielded `[]` instead of `sparse([])`.
-* [#16483](https://bugzilla.scilab.org/16483): substraction of complex polynomial matrices was broken (Scilab 6 regression).
\ No newline at end of file
+* [#16483](https://bugzilla.scilab.org/16483): substraction of complex polynomial matrices was broken (Scilab 6 regression).
poResult->getAs<types::Double>()->append(iCurRow, iCurCol, _poSource);
break;
case types::InternalType::ScilabPolynom:
+ if (poResult->getAs<types::Polynom>()->getVariableName() != _poSource->getAs<types::Polynom>()->getVariableName())
+ {
+ // call overload
+ return NULL;
+ }
poResult->getAs<types::Polynom>()->append(iCurRow, iCurCol, _poSource);
break;
case types::InternalType::ScilabBool:
--- /dev/null
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2019 - Stéphane MOTTELET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+//
+// <-- CLI SHELL MODE -->
+// <-- NO CHECK REF -->
+//
+// <-- Non-regression test for bug 16122 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/16122
+//
+// <-- Short Description -->
+// polynomials with different variables are concatenated without error
+
+message = [ msprintf(gettext("Undefined operation for the given operands.\n"))
+ msprintf(gettext("check or define function %s for overloading.\n"),"%p_c_p")];
+assert_checkerror("[%s,%z]",message)
\ No newline at end of file