[llvm-bugs] [Bug 35116] New: clang-cl: missing #pragma function support leads to error: definition of builtin function

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Oct 28 05:01:03 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=35116

            Bug ID: 35116
           Summary: clang-cl: missing #pragma function support leads to
                    error: definition of builtin function
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: amine.khaldi at reactos.org
                CC: llvm-bugs at lists.llvm.org

unsigned int _rotr(unsigned int value, int shift);
#pragma intrinsic(_rotr)
#pragma function(_rotr)

unsigned int _rotr(unsigned int value, int shift) { return 0;}

int main() {}

cl compiles it but clang-cl emits:

test.c(5,14) :  error: definition of builtin function '_rotr'
unsigned int _rotr(unsigned int value, int shift) { return 0;}
             ^
1 error generated.

-- 
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/20171028/254ae839/attachment-0001.html>


More information about the llvm-bugs mailing list