www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22558] New: [REG 2.098] Error: function

https://issues.dlang.org/show_bug.cgi?id=22558

          Issue ID: 22558
           Summary: [REG 2.098] Error: function 'core.stdc.stdio.vfprintf'
                    'pragma(printf)' functions must be 'extern(C) int
                    vfprintf([parameters...], const(char)*, va_list)'
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: ibuclaw gdcproject.org

Reduced test:
---
module core.stdc.stdio;

struct __va_list_tag
{
    uint gp_offset;
    uint fp_offset;
    void* overflow_arg_area;
    void* reg_save_area;
}
struct FILE;

version (all)
{
    alias __builtin_va_list = __va_list_tag*;
    alias va_list = __builtin_va_list;
}
else
{
    alias va_list = __va_list_tag*;
}

extern(C)
{
    pragma(printf)
    int vfprintf(FILE* stream, scope const char* format, va_list arg);
}

--
Dec 01 2021