Thread overview
[Issue 817] New: const char[] = string_literal - string_literal gets included for every reference
Jan 08, 2007
d-bugmail
Jan 08, 2007
d-bugmail
Jan 28, 2007
d-bugmail
January 08, 2007
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
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
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


--