[llvm-bugs] [Bug 8718] No warning on casting between pointer and non-pointer-sized int

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Dec 6 13:23:47 PST 2019


https://bugs.llvm.org/show_bug.cgi?id=8718

Mark de Wever <koraq at xs4all.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---
           Assignee|unassignedclangbugs at nondot. |koraq at xs4all.nl
                   |org                         |

--- Comment #6 from Mark de Wever <koraq at xs4all.nl> ---
(In reply to Arnd Bergmann from comment #5)
> I still don't see a warning with yesterday's
> 10.0.0-+20191205031116+3d43c73f26f-1~exp1~20191205021716.2649 build from
> apt.llvm.org:
> 
> $ echo "static char a; int main(void) { switch ((int)&a) {} return
> (int)&a;}" | clang-10 -xc -c - -o /dev/null -Wall -Weverything
> # empty output
> 
> Is there something you did differently?

Yes it seems I tested with a C++ file, which is not the case for the Linux
kernel. Testing your issue as a C file isn't fixed. Timothy's original C issue
is fixed.

-- 
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/20191206/b31669b3/attachment.html>


More information about the llvm-bugs mailing list