I am getting some strange results in a constructor for large objects with the cl2000 compiler. The objects in question do not use any dynamic memory anywhere (within the class implementation, or by users of the class), but in certain cases the operator new is called heavily in the constructor.
I've managed to create a test case which I will post here.
It seems like it has something to do with the inlining threshold, as I can prevent this from happening by using the --auto_inlining=100000 build flag... but the problem is, that in my application I can't set this on a file-by-file basis, for various reasons, so I'm stuck.
Could one of you TI gurus please take a look at it? It seems like a bug to me.