Bug 2574 – std.c.stdio doesn't compile: va_list not defined!
Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2009-01-10T13:27:00Z
Last change time
2015-06-09T01:21:00Z
Keywords
rejects-valid
Assigned to
bugzilla
Creator
htvennik
Comments
Comment #0 by htvennik — 2009-01-10T13:27:04Z
Although it looks like a Phobos bug, it seems to be a compiler issue, because std.c.stdio imports std.c.stdargs, which defines va_list as:
alias void* va_list;
If i remove the line 'private import std.c.stdargs;' from std/c/stdio.d and add 'alias void* va_list;' instead, it works!
The compiler does not complain about a missing std/c/stdargs.d file, so it does actually import the module!
Comment #1 by witold.baryluk+d — 2009-03-06T11:40:06Z
Please do something with it. This breaks lots of libraries.