Issue 22767 - C-style variadic functions assume __va_list_tag is imported
Summary: C-style variadic functions assume __va_list_tag is imported
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86_64 Linux
: P3 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-13 04:04 UTC by duser
Modified: 2024-11-05 20:45 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description duser 2022-02-13 04:04:55 UTC
// 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
Comment 1 connor-gh 2024-11-05 20:45:36 UTC
Just ran into this myself.