[LLVMbugs] [Bug 19965] New: ms-asm: error when building as c++

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jun 5 19:54:52 PDT 2014


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

            Bug ID: 19965
           Summary: ms-asm: error when building as c++
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: jmuizelaar at mozilla.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

The following code compiles just fine as a c file. But when compiled as c++ it
gives: 
<inline asm>(3,18) :  error: unknown token in expression
        fadd qword ptr ["?half@?0??add@@YAMM at Z@4NB"]

float add(float x)
{
    static const double half = 0.5f;
    __asm {
      fld     x
      fadd    half
      fst     x
    }
    return x;
}

-- 
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/20140606/0f71f731/attachment.html>


More information about the llvm-bugs mailing list