Bug 13219 – segmentation fault in FuncDeclaration::getLevel
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-07-28T00:56:00Z
Last change time
2014-08-22T08:05:04Z
Keywords
ice, pull
Assigned to
nobody
Creator
tim.dlang
Comments
Comment #0 by tim.dlang — 2014-07-28T00:56:19Z
The following code compiled with DMD 2.064.2, but results in a segmentation fault with DMD 2.065.0 and 2.066.0-b6:
struct Map(V)
{
}
void test(alias F,VA,VB)(Map!(VA), Map!(VB) ) if(is(VA:typeof(F(VA.init,VB.init))) )
{
}
void test2(alias F)() {
test!((a,b)=>b)(Map!(int).init, Map!(int).init);
}
void main()
{
int x;
test2!(x)();
}