[LLVMbugs] [Bug 6615] New: legal var decl is reported as error

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Mar 14 11:42:14 PDT 2010


http://llvm.org/bugs/show_bug.cgi?id=6615

           Summary: legal var decl is reported as error
           Product: clang
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: mikem.llvm at gmail.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


Created an attachment (id=4517)
 --> (http://llvm.org/bugs/attachment.cgi?id=4517)
reduction: foo.cpp

namespace xx {
  int m; 
}
namespace yy {
  int m; 
}

using namespace xx;
using namespace yy;

void foo() {
  int m; 
}

//////////////////////////////////////////////////////////////////////

error: reference to 'm' is ambiguous
foo.cpp:2:7: note: candidate found by name lookup is 'xx::m'
  int m;
      ^
foo.cpp:5:7: note: candidate found by name lookup is 'yy::m'
  int m;
      ^
3 diagnostics generated.

-- 
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