[cxx-abi-dev] N3639 (arrays of runtime bound): __cxa_bad_array_length

Richard Smith richardsmith at google.com
Mon Apr 22 13:05:51 UTC 2013


On Mon, Apr 22, 2013 at 1:39 AM, Florian Weimer <fweimer at redhat.com> wrote:

> On 04/22/2013 09:00 AM, Florian Weimer wrote:
>
>> On 04/21/2013 01:19 AM, Richard Smith wrote:
>>
>>> 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
>>>
>>
>> Do we want to throw an exception if the stack hasn't got sufficient
>> space for the array?  Then we need a fundamentally different interface
>> (probably a stack limit stored in a TLS variable or an alloca-like
>> function).
>>
>> I should probably askon the standards list what the expectations are.
>>
>
> Uhm, is this about N3497?  N3639 does not seem to exist yet (or if it
> does, I'd appreciate someone sending me a copy).


Attached.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sourcerytools.com/pipermail/cxx-abi-dev/attachments/20130422/1a7f1f19/attachment-0002.html>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sourcerytools.com/pipermail/cxx-abi-dev/attachments/20130422/1a7f1f19/attachment-0003.html>


More information about the cxx-abi-dev mailing list