Bug 1439 – Optlink segfault with long template string arguments

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
tools
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2007-08-25T18:10:00Z
Last change time
2017-01-10T01:37:43Z
Keywords
link-failure, Optlink
Assigned to
nobody
Creator
clugdbug

Comments

Comment #0 by clugdbug — 2007-08-25T18:10:36Z
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 by clugdbug — 2009-11-25T04:52:52Z
This was fixed between D1.041 and 1.045.