[LLVMbugs] [Bug 16407] Assignment from "void *" without cast treated as error within extern "C" block

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jun 21 11:31:47 PDT 2013


David Blaikie <dblaikie at gmail.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |dblaikie at gmail.com
         Resolution|---                         |INVALID

--- Comment #1 from David Blaikie <dblaikie at gmail.com> ---
(maybe someone else will chime in that this is a reasonable extension, but
until then...)

"extern "C"" doesn't actually change the language, just the linkage/mangling of
externally visible entities, so this behavior is 'by design' - the code is
still C++ code & that conversion is still invalid.

GCC does support this under -fpermissive, but Clang doesn't seem to have any
support for this flag at all. Arguably it could be added for compatibility.

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/20130621/05d27d03/attachment.html>

More information about the llvm-bugs mailing list