[LLVMbugs] [Bug 10592] New: cannot compile scalar expression; static_cast const int& to const unsigned&

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Aug 4 18:16:01 PDT 2011


http://llvm.org/bugs/show_bug.cgi?id=10592

           Summary: cannot compile scalar expression; static_cast const
                    int& to const unsigned&
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: nlewycky at google.com
                CC: llvmbugs at cs.uiuc.edu


This testcase:

  unsigned test(const int &v) {
    return static_cast<const unsigned &>(v);
  }

triggers the following irgen-time error:

nlewycky at ducttape:~$ llvm/Debug+Asserts/bin/clang cast.cc -c
cast.cc:2:40: error: cannot compile this scalar expression yet
  return static_cast<const unsigned &>(v);
                                       ^

I could swear that's a regression.

-- 
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