http://d.puremagic.com/issues/show_bug.cgi?id=8200
Summary: DMD segfault: template aliasing result of map
Product: D
Version: D2
Platform: x86_64
OS/Version: Mac OS X
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Peter Alexander <[email protected]> 2012-06-05
13:35:48 PDT ---
---------
import std.algorithm;
struct Range
{
@property int front() { return 0; }
void popFront() {}
enum bool empty = false;
int dummy = 0;
}
void foo(alias A)() {}
void main()
{
foo!(map!"a"(Range()))();
}
---------
% dmd test.d
zsh: segmentation fault dmd test.d
---------
I haven't managed to reduce it beyond this.
This happens with DMD 2.059 and also from DMD 2.060 head.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------