[Issue 1751] New: char** null after Compilation

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Dec 28 12:38:00 PST 2007


http://d.puremagic.com/issues/show_bug.cgi?id=1751

           Summary: char** null after Compilation
           Product: DGCC aka GDC
           Version: 0.24
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: glue layer
        AssignedTo: dvdfrdmn at users.sf.net
        ReportedBy: mike-wey at planet.nl


I found the following when tracking down a problem with gtkD and gdc-0.24.
char** are null after compiling with gdc-0.24, but with gdc-0.23 and dmd 1.024
they are not.

Example:

import std.stdio;

void main()
{
        //prints true with gdc-0.24,
        //and false with gdc-0.23 and dmd 1.024
        writefln(test is null);
        assert(test, "test is only null in gdc 0.24");
}

char** test = ["hello", "test", "    "];


-- 



More information about the D.gnu mailing list