www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1439] New: Optlink segfault with long template string arguments

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1439

           Summary: Optlink segfault with long template string arguments
           Product: D
           Version: 1.020
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: clugdbug yahoo.com.au


Seems to happen whenever the length of text equals 1024 characters.
If the limit is set a little higher, compilation fails before reaching the
linker.
-----------------
class A(char [] text)
{
    static if (text.length<1023) {
    A!("b"~text) bar() { 
        return null; } // recursive expansion
 }
}

void main()
{
    A!("yyy") b;
}


-- 
Aug 25 2007
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1439


Don <clugdbug yahoo.com.au> changed:

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



This was fixed between D1.041 and 1.045.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 25 2009