Issue 11086 - dmd segfault
Summary: dmd segfault
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 regression
Assignee: No Owner
URL:
Keywords: ice, pull
Depends on:
Blocks:
 
Reported: 2013-09-21 10:18 UTC by Elvis Zhou
Modified: 2013-09-22 02:36 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Elvis Zhou 2013-09-21 10:18:10 UTC
//test.d

struct A
{
    foo!(A) l1,l2;
}

dmd -main test.d will segfault
Comment 1 monarchdodra 2013-09-21 10:34:27 UTC
This is a 2.061 => 2.062 regression:

2.061:
//---
main.d(3): Error: template instance foo!(A) template 'foo' is not defined
main.d(3): Error: foo!(A) is used as a type
main.d(3): Error: foo!(A) is used as a type
END
//---

2.062:
//---
main.d(3): Error: template instance foo!(A) template 'foo' is not defined
main.d(3): Error: foo!(A) is used as a type
CRASH
//---
Comment 2 Infiltrator 2013-09-21 16:11:31 UTC
This looks to be fixed in 2.063:
//---
/d741/f473.d(2): Error: template instance foo!(A) template 'foo' is not defined
END
//---