[LLVMbugs] [Bug 23722] clang gives compiler where gcc does not when dealing with extern "C" function declarations

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jun 1 20:40:37 PDT 2015


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

Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |richard-llvm at metafoo.co.uk
         Resolution|---                         |INVALID

--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
The problem is that the two function declarations have different parameter
types. The windows.h version takes ::_FILETIME*, whereas the boost version
takes boost::detail::winapi::_FILETIME*. Because they're 'extern "C"'
functions, they are redeclarations of the same function, and are ill-formed
because they have different types.

-- 
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/20150602/e404a63b/attachment.html>


More information about the llvm-bugs mailing list