[LLVMbugs] [Bug 15683] pointer arithmetic with empty struct compiles into division by zero

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Apr 5 02:44:08 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=15683

Jari Kirma <jari at kirma.fi> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Jari Kirma <jari at kirma.fi> ---
After a second of thought and comment from a colleague, closing as invalid:
structure with no named members is undefined behavior.

Maybe this undefined behavior could emit a warning. Or is there such a warning
already?

-- 
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/20130405/2f2da147/attachment.html>


More information about the llvm-bugs mailing list