← Back to index
|
Original Bugzilla link
Bug 817 – const char[] = string_literal - string_literal gets included for every reference
Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P4
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2007-01-07T20:40:00Z
Last change time
2014-02-15T13:12:39Z
Assigned to
bugzilla
Creator
dlang-bugzilla
Comments
Comment #0
by dlang-bugzilla — 2007-01-07T20:40:15Z
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.
Comment #1
by dlang-bugzilla — 2007-01-07T20:42:06Z
Also, I can't spell. (eleven*)
Comment #2
by bugzilla — 2007-01-27T18:55:05Z
Fixed DMD 1.001