[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 15:48:55 PST 2012


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

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

--- Comment #3 from Richard Smith <richard-llvm at metafoo.co.uk> 2012-12-17 17:48:55 CST --- "A translation unit shall include a header only outside of any
external declaration or definition"

Also consider that functions declared in <cstdlib> might actually be intended
to have C++ language linkage (see, so what you're doing is
fundamentally broken.

There is a compiler bug here, in that we don't build correct redeclaration
chains when a namespace is placed inside a linkage specification -- that's

*** This bug has been marked as a duplicate of bug 12770 ***

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