[LLVMbugs] [Bug 9681] New: Wrong namespace inspected for a symbol?
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Apr 11 12:13:16 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=9681
Summary: Wrong namespace inspected for a symbol?
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: asl at math.spbu.ru
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Consider the following code:
namespace foo {
class Foo {
int bar(void);
};
}
using namespace foo;
int Foo::bar(void) {
extern int baz;
return baz;
}
both g++ and edg emit the reference to baz in global namespace here, clang -
from namespace foo. This might lead to e.g. link errors.
--
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