[LLVMbugs] [Bug 21724] Void expression address does not generate an error (C only)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Dec 3 10:17:43 PST 2014


David Majnemer <david.majnemer at gmail.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |david.majnemer at gmail.com
         Resolution|---                         |FIXED

--- Comment #1 from David Majnemer <david.majnemer at gmail.com> ---
Clang is aware, it just won't tell you unless you pass -pedantic:
<stdin>:5:7: warning: ISO C forbids taking the address of an expression of type
      &foo; // 2
<stdin>:5:7: warning: expression result unused
      &foo; // 2

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/20141203/a70e68dd/attachment.html>

More information about the llvm-bugs mailing list