[LLVMbugs] [Bug 9729] New: Error truncation removes helpful information
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Apr 15 02:09:52 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=9729
Summary: Error truncation removes helpful information
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Frontend
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: csdavec at swan.ac.uk
CC: llvmbugs at cs.uiuc.edu
I recently got this error compiling some code with clang:
CGObjCGNU.cpp:250:9: error: call to 'get' is ambiguous
IdTy = llvm::StructType::get(Context, OpaqueIdTy, NULL);
^~~~~~~~~~~~~~~~~~~~~
/usr/home/theraven/llvm/include/llvm/DerivedTypes.h:246:22: note: candidate
function
static StructType *get(LLVMContext &Context,
^
/usr/home/theraven/llvm/include/llvm/DerivedTypes.h:260:22: note: candidate
function
static StructType *get(LLVMContext &Context,
^
1 error generated.
>From the two error lines, the candidate functions appear identical. In
contrast, GCC gives this error:
error: ISO C++ says that these are ambiguous, even though the worst conversion
for the first is better than the worst conversion for the second:
/usr/home/theraven/llvm/include/llvm/DerivedTypes.h:248: note: candidate 1:
static llvm::StructType* llvm::StructType::get(llvm::LLVMContext&,
llvm::ArrayRef<const llvm::Type*>, bool)
/usr/home/theraven/llvm/include/llvm/DerivedTypes.h:261: note: candidate 2:
static llvm::StructType* llvm::StructType::get(llvm::LLVMContext&, const
llvm::Type*, ...)
While this isn't as pretty, it does actually give me useful information.
--
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