[LLVMbugs] [Bug 20883] New: error: non-ASM statement in naked function is not supported with clang-cl and an empty statement

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Sep 8 19:12:30 PDT 2014


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

            Bug ID: 20883
           Summary: error: non-ASM statement in naked function is not
                    supported with clang-cl and an empty statement
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: ehsan at mozilla.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

$ cat test.cpp
__declspec(naked) void f() {
  __asm{};
}
$ ./bin/clang-cl -c test.cpp
test.cpp(2,10) :  error: non-ASM statement in naked function is not supported
  __asm{};
         ^
test.cpp(1,12) :  note: attribute is here
__declspec(naked) void f() {
           ^
1 error generated.


This is a regression.

-- 
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/20140909/34491d2a/attachment.html>


More information about the llvm-bugs mailing list