Bug#451707: Acknowledgement (gdc-4.1: gdc is confused by variadic arguments in (C) mode)
retitle 451707 D should send foo as a foo* when used in a variadic argument in extern(C) context
severity 451707 important
I understood the issue: when the "-c" argument is sent as the first
argument of the variadic part, D sends a char and not a char*, meaning
that it puts 2, "-c" on the stack, which confuses the C.
I believe that D should do the implicit cast in that case, as it'll
break a _lot_ of programs using C APIs and variadic arguments in very
·O· Pierre Habouzit
|All times are GMT. The time now is 06:53 PM.|
VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.