[PATCHJ] Fix for diagnosing half pointers/arrays

Joey Gouly joey.gouly at arm.com
Fri Feb 8 08:32:38 PST 2013


Hi all,

In r173254 I committed some changes to add support for 'half' type to clang.

I got some of the error cases wrong, and produced a diagnostic for '&h[0]'
and '&*h',
which are both defined to always produce a pointer. C99 6.5.3.2, footnote
84.

Does this look like a good fix?

Thanks,
Joey
-------------- next part --------------
A non-text attachment was scrubbed...
Name: half_deref_fix.diff
Type: application/octet-stream
Size: 4898 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130208/cd1e6bf0/attachment.obj>


More information about the cfe-commits mailing list