Tried adding it to the existing array-bounds-ptr-arith.cpp but that didn't
work because the diagnostic about void pointer arithmetic was triggering
instead. Went to lunch shortly after committing the fix and remembered while
at lunch that pointer arithmetic with void* is disallowed in C++ but not C,
so am adding the test case now. ;)

On Wed, Aug 10, 2011 at 11:53 AM, Chandler Carruth <[email protected]>wrote:

> On Wed, Aug 10, 2011 at 2:49 PM, Kaelyn Uhrain <[email protected]> wrote:
>
>> Make sure ptrarith_typesize is at least 1 to avoid division by zero
>
>
> Testcase?
>
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to