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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


This testcase:

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

triggers the following irgen-time error:

nlewycky@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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to