www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2724] New: Persistent segfaults in templated code

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2724

           Summary: Persistent segfaults in templated code
           Product: D
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: andrei metalanguage.com


The compiler segfaults for any single mistake inside certain template code. 

import std.typecons;

Tuple!(Types) foo(Types...)(string a)
{
    typeof(return) result;
    mistake;
    return result;
}

void main()
{
    auto a = foo!(int, double)("a");
}

The compiler's answer is:

Segmentation fault

The 2.x compiler is next to unusable for writing template code at this time.
Please go back in time last week and fix this bug.


-- 
Mar 10 2009
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2724


bugzilla digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED





Fixed DMD 2.027


-- 
Apr 01 2009