[Issue 8200] New: DMD segfault: template aliasing result of map
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Tue Jun  5 13:33:48 PDT 2012
    
    
  
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: nobody at puremagic.com
        ReportedBy: peter.alexander.au at gmail.com
--- Comment #0 from Peter Alexander <peter.alexander.au at gmail.com> 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: -------
    
    
More information about the Digitalmars-d-bugs
mailing list