[LLVMbugs] [Bug 14619] Including stdlib.h in an extern "C" block causes a "declaration conflicts with target of using declaration already in scope"
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Dec 17 12:36:14 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=14619
Eli Friedman <sharparrow1 at yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |sharparrow1 at yahoo.com
Resolution| |INVALID
--- Comment #1 from Eli Friedman <sharparrow1 at yahoo.com> 2012-12-17 14:36:14 CST ---
(In reply to comment #0)
> When including <cstdlib> in an extern "C" block, it causes a compiler error.
>
> I've had a compile error and eventually debugged it to this problem. When I
> have a file that does this:
>
> extern "C" {
> #include <cstdlib>
> }
This has undefined behavior per the C++ standard.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list