www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22767] New: C-style variadic functions assume __va_list_tag


          Issue ID: 22767
           Summary: C-style variadic functions assume __va_list_tag is
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: duser airmail.cc

// test.d
void fn(int x, ...) {}

output: "test.d(1): Error: `__va_list_tag` is not defined, perhaps `import
core.stdc.stdarg;` ?"

it gives the error on 64-bit linux but compiles successfully on windows (either
bitness) and 32-bit linux

Feb 12 2022