Hi,

N3639, which was voted into the C++14 committee draft today, adds a
std::bad_array_length exception which an implementation is required to
throw if the computed bound for a VLA ("array of runtime bound") is
"erroneous".

"erroneous" can be any of:
 - bound <= 0
 - bound > some implementation-defined limit
 - bound < number of initializers provided

We need a new ABI entry point to throw this exception. I propose we don't
try to encode what went wrong and just use

  extern "C" void __cxa_throw_bad_array_length();

analogously to __cxa_throw_bad_array_*new*_length.

Sound good?
_______________________________________________
cxx-abi-dev mailing list
[email protected]
http://sourcerytools.com/cgi-bin/mailman/listinfo/cxx-abi-dev

Reply via email to