module compilation problem with function specialisation
I just ran into the following runtime crash with type coercion:
apex@medusa:~/apexgit/Ancillary/benchmks/UnitTests/UTThornReal/crud$ sac2c UTThornReal.sac
apex@medusa:~/apexgit/Ancillary/benchmks/UnitTests/UTThornReal/crud$ sac2c UTThornReal.unittest.sac
a.out;eapex@medusa:~/apexgit/Ancillary/benchmks/UnitTests/UTThornReal/crud$ a.out;echo $?
___[] SACp_pinl_4385_z
*** SAC runtime error
*** //home/apex/apexgit/Ancillary/benchmks/UnitTests/UTThornReal/src/UTThornReal.sac:385
*** Can not assign unsigned char[+] SACp_pinl_4385_z to unsigned char[.] SACp_pinl_4173_A_61 type mismatch
My naive expectation is that the coercion would be allowed if the argument, at runtime, is a vector. The argument is, I believe, a vector, yet the coercion fails.
What am I missing here? I am going to try to come up with a simpler example of the failure that does not drag in ArrayFormat.