[LLVMbugs] [Bug 8430] New: id lookup lost in scopes with using directive
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Oct 21 08:44:03 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=8430
Summary: id lookup lost in scopes with using directive
Product: new-bugs
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: Axel.Naumann at cern.ch
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=5644)
--> (http://llvm.org/bugs/attachment.cgi?id=5644)
test case
Hi,
attached code works with
clang++ -c -O2 -m64 -pipe u.cxx -DMAKE_CLANG_HAPPY
but not with
clang++ -c -O2 -m64 -pipe u.cxx
u.cxx:40:11: error: unknown type name 'TGenericClassInfo'
static TGenericClassInfo *GenerateInitInstanceLocal(const ::space::X<int>*)
^
u.cxx:42:7: error: no member named 'Shadow' in namespace 'ROOT'
R__ASSERT(sizeof(::space::X<int>) ==
sizeof(::ROOT::Shadow::space::XlEintgR));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
u.cxx:42:59: note: instantiated from:
R__ASSERT(sizeof(::space::X<int>) ==
sizeof(::ROOT::Shadow::space::XlEintgR));
~~~~~~~~^
u.cxx:43:22: error: no type named 'TGenericClassInfo' in namespace 'ROOT'
static ::ROOT::TGenericClassInfo instance;
~~~~~~~~^
u.cxx:46:4: error: unknown type name 'TGenericClassInfo'
TGenericClassInfo *GenerateInitInstance(const ::space::X<int>*)
^
4 errors generated.
I (and GCC) think the code is fine...
Cheers, Axel.
--
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