www.digitalmars.com         C & C++   DMDScript  

D.gnu - [Issue 1751] New: char** null after Compilation

reply d-bugmail puremagic.com writes:
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 users.sf.net
        ReportedBy: mike-wey 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", "    "];


-- 
Dec 28 2007
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1751


Iain Buclaw <ibuclaw ubuntu.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


--- Comment #1 from Iain Buclaw <ibuclaw ubuntu.com> 2010-08-05 14:36:48 PDT ---
Fixed in hg commit 118 / release 0.25

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 05 2010