Mail Archives: djgpp/1992/12/08/19:58:45
In your(ESCHN705 AT RZ DOT Braunschweig DOT PTB DOT DBP DOT DE) code,
> morg[lm][2+lm] = morg[2+lm][lm] =
> morg[2*lact-lm][2*(lact-1)-lm] = morg[2*(lact-1)-lm][2*lact-lm] =
> -0.25*sqrt((lm+1.0)*(lm+2.0)*(2.0*lact-lm)*(2.0*lact-1.0-lm));
tries to access out of bound of memory of the arrary morg[][].
When lact=lm=0, morg[2*lact-lm][2*(lact-1)-lm] is morg[0][-2].
But, you didn't declare the arrary morg[][] so that morg[0][-2] is feasible.
So -O (or -O2) option didn't allow this error.
Wonkoo Kim
EE, U. of Pittsburgh
wkim AT vms DOT cis DOT pitt DOT edu
- Raw text -