FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian GCC

 
 
LinkBack Thread Tools
 
Old 11-17-2007, 09:07 PM
Pierre Habouzit
 
Default 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
 

Thread Tools




All times are GMT. The time now is 11:02 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org