[LLVMbugs] [Bug 14958] New: Namespaces and extern "C" can result in difficult to find conflicts
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Jan 15 06:46:56 PST 2013
http://llvm.org/bugs/show_bug.cgi?id=14958
Bug #: 14958
Summary: Namespaces and extern "C" can result in difficult to
find conflicts
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++
AssignedTo: rafael.espindola at gmail.com
ReportedBy: joerg at NetBSD.org
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Test case:
namespace js
{
extern int ObjectClass;
}
extern "C" namespace js
{
}
int
js::ObjectClass;
I'm not sure if this is correct, but it was accepted by GCC and earlier Clang
versions. At the very least, a note pointing to the ``extern "C"'' should be
added.
--
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