[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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
thanks

  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
subtle ways.

-- 
·O·  Pierre Habouzit
··O                                                madcoder@debian.org
OOO                                                http://www.madism.org

Attachment: pgphd85b2XQz4.pgp
Description: PGP signature


Reply to: