[Issue 23580] New: undefined identifier `__builtin___memcpy_chk
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Tue Dec 27 19:37:08 UTC 2022
    
    
  
https://issues.dlang.org/show_bug.cgi?id=23580
          Issue ID: 23580
           Summary: undefined identifier `__builtin___memcpy_chk
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: doob at me.com
Compiling the following C code:
#include <string.h>
void foo()
{
    memcpy(0, 0, 0);
}
Results in the following error:
foo.c(5): Error: undefined identifier `__builtin___memcpy_chk`
If I run the C code manually through the preprocessor "memcpy" is replaced with
"__builtin___memcpy_chk".
I'm using macOS 13.0.1, DMD v2.101.1 and Xcode 14.2.
--
    
    
More information about the Digitalmars-d-bugs
mailing list