Closed mkstoyanov closed 3 years ago
Noted. I'll comb back through the code looking for this kind of behavior-- it's likely there are other fragments similar to this. This specific instance is addressed in commit 018d7a92f3ce84094cf0840a397d6b6a151a8578
https://github.com/dannys4/FFT-Research-F20/blob/a6a45f6c761b5d84122a1cb1261231d6df839328/FFTE/include/complex.hpp#L31
You may have double-initialization here, e.g.,
var
gets created and initialized once than it gets overwritten byv
. Even ifvar
is not initialized, it will have an uninitilized state when entering the call. It is better to initialize immediately: