[llvm-bugs] [Bug 39809] Wrong type of ternary expression; (void const*)0 erroneously treated as the null pointer constant
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Nov 27 22:26:36 PST 2018
https://bugs.llvm.org/show_bug.cgi?id=39809
Richard Smith <richard-llvm at metafoo.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Fixed By Commit(s)| |347730
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
We were getting the determination of whether (const void*)0 is a null pointer
wrong in general. For instance, we didn't reject this in -pedantic-errors mode:
int *p = (const void*)0;
Fixed in r347730. Thanks for the report!
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20181128/5235d59d/attachment.html>
More information about the llvm-bugs
mailing list