[cfe-commits] r137234 - /cfe/trunk/lib/Sema/SemaChecking.cpp

Kaelyn Uhrain rikka at google.com
Wed Aug 10 12:38:57 PDT 2011


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 <chandlerc at google.com>wrote:

> On Wed, Aug 10, 2011 at 2:49 PM, Kaelyn Uhrain <rikka at google.com> wrote:
>
>> Make sure ptrarith_typesize is at least 1 to avoid division by zero
>
>
> Testcase?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110810/07968f11/attachment.html>


More information about the cfe-commits mailing list