www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2230] New: Compiler crashes on invalid code (revisited)

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

           Summary: Compiler crashes on invalid code (revisited)
           Product: D
           Version: 2.017
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: samukha voliacable.com


The following crashes the compiler if Bar does not exist or has an error.
Related to 2229

template Bar(A...)
{
    alias inty Bar; // invalid
}

void foo(A...)(Bar!(A) a)
{
}

void main()
{
    // works if second set of parens
    // or second parameter are removed
    foo!(1, 2)();
}


-- 
Jul 16 2008
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2230


samukha voliacable.com changed:

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




------- Comment #1 from samukha voliacable.com  2008-07-16 06:32 -------
Marking this a duplicate of 2229, as they seem to be the same bug.

*** This bug has been marked as a duplicate of 2229 ***


-- 
Jul 16 2008