[Issue 1439] New: Optlink segfault with long template string arguments
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Aug 25 16:10:37 PDT 2007
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 at digitalmars.com
ReportedBy: clugdbug at 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;
}
--
More information about the Digitalmars-d-bugs
mailing list