www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2708] New: Assertion failure: 'global.errors' on line 3883 in file 'template.c'

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

           Summary: Assertion failure: 'global.errors' on line 3883 in file
                    'template.c'
           Product: D
           Version: 2.025
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: samukha voliacable.com


template Foo(T)
{
}

template Bar()
{
    alias Foo!(typeof(this)) foo;
}

struct S
{
    mixin Bar;
}
----

Worked around by taking the type out of template parameter list:

template Bar()
{
    alias typeof(this) T;
    alias Foo!(T) foo;
}


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


Max Samukha <samukha voliacable.com> changed:

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


--- Comment #1 from Max Samukha <samukha voliacable.com> 2009-10-21 02:08:46
PDT ---
Fixed at some point

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 21 2009