[LLVMbugs] [Bug 18555] New: CreateBuiltinUnaryOp accepts invalid operations

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Jan 19 23:18:08 PST 2014


            Bug ID: 18555
           Summary: CreateBuiltinUnaryOp accepts invalid operations
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: alp at nuanti.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

CreateOverloadedUnaryOp() says:

     // No viable function; fall through to handling this as a
     // built-in operator, which will produce an error message for us.

But CreateBuiltinUnaryOp() doesn't always produce an error, causing various
accepts-invalid issues.

This really needs an assert, but other code depending on the broken behaviour
like RebuildForRangeWithDereference() needs to be fixed first..

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/20140120/44602960/attachment.html>

More information about the llvm-bugs mailing list