I don't get any error at all. The memory is allocated at runtime, so if its a compile time error, then it's not an unsuccessful allocation.

Are you sure you are getting the error, maybe you have a typo or a different version from the one you posted.