[Issue 7872] New: dmd should warn if `printf` is used on D strings
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Apr 9 08:18:51 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7872
Summary: dmd should warn if `printf` is used on D strings
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: jonas at lophus.org
--- Comment #0 from Jonas H. <jonas at lophus.org> 2012-04-09 08:19:32 PDT ---
string foo = "john";
printf("hello %s\n", foo);
doesn't work because `printf` expects a zero-terminated string.
The compiler should really yield a warning here.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list