[LLVMbugs] [Bug 7680] New: fixit hints don't obey access control
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Jul 20 14:51:11 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=7680
Summary: fixit hints don't obey access control
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: clattner at apple.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
I accidentally called the getWidth() member of APInt instead of getBitWidth()
and got this:
CGExprCXX.cpp:445:18: error: no member named 'getWidth' in 'llvm::APInt'; did
you mean 'BitWidth'?
NEC.zext(NEC.getWidth()*2);
^~~~~~~~
BitWidth
In file included from CGExprCXX.cpp:14:
In file included from
/Users/sabre/llvm/tools/clang/lib/CodeGen/CodeGenFunction.h:17:
In file included from
/Users/sabre/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/Type.h:25:
In file included from /Users/sabre/llvm/include/llvm/ADT/APSInt.h:18:
/Users/sabre/llvm/include/llvm/ADT/APInt.h:73:12: note: 'BitWidth' declared
here
unsigned BitWidth; ///< The number of bits in this APInt.
^
CGExprCXX.cpp:445:18: error: 'BitWidth' is a private member of 'llvm::APInt'
NEC.zext(NEC.getWidth()*2);
^
In file included from CGExprCXX.cpp:14:
In file included from
/Users/sabre/llvm/tools/clang/lib/CodeGen/CodeGenFunction.h:17:
In file included from
/Users/sabre/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/Type.h:25:
In file included from /Users/sabre/llvm/include/llvm/ADT/APSInt.h:18:
/Users/sabre/llvm/include/llvm/ADT/APInt.h:73:12: note: declared private here
unsigned BitWidth; ///< The number of bits in this APInt.
^
CGExprCXX.cpp:445:26: error: called object type 'unsigned int' is not a
function or function pointer
NEC.zext(NEC.getWidth()*2);
~~~~~~~~~~~~^
This sucks for two reasons: it suggested a field when I'm calling a function,
and it suggested a private member that I definitely couldn't call.
--
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