[cfe-commits] r164959 - /cfe/trunk/test/Analysis/array-struct.c

Eli Friedman eli.friedman at gmail.com
Mon Oct 1 21:12:04 PDT 2012


On Mon, Oct 1, 2012 at 12:07 PM, Jordan Rose <jordan_rose at apple.com> wrote:
> Author: jrose
> Date: Mon Oct  1 14:07:19 2012
> New Revision: 164959
>
> URL: http://llvm.org/viewvc/llvm-project?rev=164959&view=rev
> Log:
> [analyzer] Add a test for PR13927 "offsetof replacement flagged as null deref"
>
> This seems to be legal according to C11 6.5.3.2.

Strictly speaking, it's not legal... but it's used frequently enough
that it isn't a good idea to diagnose it.

-Eli



More information about the cfe-commits mailing list