D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 1439 - Optlink segfault with long template string arguments
Summary: Optlink segfault with long template string arguments
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: tools (show other issues)
Version: D1 (retired)
Hardware: x86 Windows
: P2 normal
Assignee: No Owner
URL:
Keywords: link-failure, Optlink
Depends on:
Blocks:
 
Reported: 2007-08-25 18:10 UTC by Don
Modified: 2017-01-10 01:37 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Don 2007-08-25 18:10:36 UTC
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;
}
Comment 1 Don 2009-11-25 04:52:52 UTC
This was fixed between D1.041 and 1.045.