On 05/29/2012 12:00 PM, Florian Weimer wrote:
This patch flags operator new on variably modified types as an error.
If this is acceptable, this will simplify the implementation of the
C++11 requirement to throw std::bad_array_new_length instead of
allocating a memory region which is too short.

Hmm. I'm somewhat reluctant to outlaw a pattern that has an obvious meaning. On the other hand, it is an extension that is mostly there for C compatibility, which would not be affected by this restriction. So I guess the change is OK, but please add a comment about the motivation.

Jason

Reply via email to