www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.ide
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript
electronics



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

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