[LLVMbugs] [Bug 22397] New: don't display 'candidate' notes for overload resolution failure if an argument had type 'void'

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jan 29 18:49:28 PST 2015


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: unassignedclangbugs at nondot.org
          Reporter: richard-llvm at metafoo.co.uk
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150130/12638e06/attachment.html>


More information about the llvm-bugs mailing list