www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 5087] New: Assertion failure: 'precedence[e->op] != PREC_zero' on line 816 in file 'expression.c'

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

           Summary: Assertion failure: 'precedence[e->op] != PREC_zero' on
                    line 816 in file 'expression.c'
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: sandford jhu.edu



Using DMD 2.049, using the msg pragma on a template tuple instantiated from a
template function results in an ICE.:

Assertion failure: 'precedence[e->op] != PREC_zero' on line 816 in file
'expression.c'

Test code:

T foo(T)(T t) { return t; }
template map(fun...) {
    pragma(msg,fun);
    enum map = 5;
}

void main() {
    map!foo;
    return;
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 20 2010
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5087


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |clugdbug yahoo.com.au
         Resolution|                            |DUPLICATE



This has already been fixed in svn.

*** This issue has been marked as a duplicate of issue 4926 ***

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