[cfe-dev] Incomplete checks for pointer addition

Chris Lattner clattner at apple.com
Fri Feb 15 16:25:58 PST 2008


On Feb 7, 2008, at 5:36 PM, Eli Friedman wrote:

> On Feb 4, 2008 11:26 AM, Eli Friedman <eli.friedman at gmail.com> wrote:
>> Testcase:
>> int a[]; int (*b)[] = &a+1;
>> Should give an error in sema, but clang lets it through.
>
> Here's a fix.  It's a little longer than I'd like, but I'm not sure if
> there's anything I can do there.


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pointeraddtypecheck.txt
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20080215/30ba119e/attachment.txt>
-------------- next part --------------

Steve, please review this when you get a chance, thanks!

-Chris


More information about the cfe-dev mailing list