[cfe-dev] Incomplete checks for pointer addition

Eli Friedman eli.friedman at gmail.com
Thu Feb 7 17:36:23 PST 2008


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.

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


More information about the cfe-dev mailing list