http://llvm.org/bugs/show_bug.cgi?id=22397
Bug ID: 22397
Summary: don't display 'candidate' notes for overload
resolution failure if an argument had type 'void'
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Just got this error:
lib/Sema/SemaDeclCXX.cpp:8832:63: error: invalid operands to binary expression
('llvm::raw_ostream' and 'void')
llvm::errs() << "declaring implicit default constructor for " <<
ClassDecl->dump();
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
~~~~~~~~~~~~~~~~~
... plus a big pile of notes listing all the operator<<s that clang has ever
heard of. But the problem is right there in the error message: we have an
argument of type 'void'. We should special-case this and just diagnose that
error directly.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs