Thread overview |
---|
January 08, 2007 [Issue 817] New: const char[] = string_literal - string_literal gets included for every reference | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=817 Summary: const char[] = string_literal - string_literal gets included for every reference Product: D Version: 1.00 Platform: PC OS/Version: Windows Status: NEW Severity: minor Priority: P4 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: thecybershadow@gmail.com Program: import std.stdio; const char[] str = "Hello!"; void main() { writefln(str); writefln(str); writefln(str); writefln(str); writefln(str); writefln(str); writefln(str); writefln(str); writefln(str); writefln(str); } The compiled file contains the string "Hello!" 11 (evelen) times. Doesn't happen with GDC. -- |
January 08, 2007 [Issue 817] const char[] = string_literal - string_literal gets included for every reference | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=817 ------- Comment #1 from thecybershadow@gmail.com 2007-01-07 20:42 ------- Also, I can't spell. (eleven*) -- |
January 28, 2007 [Issue 817] const char[] = string_literal - string_literal gets included for every reference | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=817 bugzilla@digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #2 from bugzilla@digitalmars.com 2007-01-27 18:55 ------- Fixed DMD 1.001 -- |
Copyright © 1999-2021 by the D Language Foundation