empty vector AKV/AKS ambiguity problem
|
|
Bugzilla Link |
452 |
Created on |
Jul 24, 2008 23:44 |
Resolution |
FIXED |
Resolved on |
Sep 16, 2008 12:24 |
Version |
1.00beta |
OS |
Linux |
Architecture |
PC |
Extended Description
Compile this and it works. Compile it with -DBUG and the compiler grumps.
--------------------------------------------------------------------------
/* Empty vector reshape one-element vector should produce scalar result */
int main()
{
int z;
int [0] x;
int [1] y;
x = [:int];
y = [1];
#ifdef BUG
z = rhoIII(x,y);
#else //BUG
z = _reshape_VxA_(x, y);
#endif //BUG
return(z);
}
int rhoIII(int[0] x, int[1] y)
{
int z;
z = _reshape_VxA_(x, y);
return(z);
}