Thread overview
[Issue 2884] New: ICE: Assert: 'template.c', line 3773, 'global.errors'
Apr 23, 2009
d-bugmail
Apr 24, 2009
d-bugmail
Apr 24, 2009
d-bugmail
May 14, 2009
Don
Jul 09, 2009
Walter Bright
April 23, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2884

           Summary: ICE: Assert: 'template.c', line 3773, 'global.errors'
           Product: D
           Version: 1.041
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: cbkbbejeap@mailinator.com


main.d:
-----------
template foo(T)
{
}
pragma(msg, foo!(typeof(bar)));
public void bar()
{
}
-----------
> dmd main.d
Assertion failure: 'global.errors' on line 3773 in file 'template.c'


-- 

April 24, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2884


clugdbug@yahoo.com.au changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pelekhay@gmail.com




------- Comment #1 from clugdbug@yahoo.com.au  2009-04-24 03:08 -------
*** Bug 2253 has been marked as a duplicate of this bug. ***


-- 

April 24, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2884





------- Comment #2 from clugdbug@yahoo.com.au  2009-04-24 03:13 -------
The original test case isn't actually valid, here's a slightly longer example which is valid. Fails on D2.029 as well.
---
template Foo( T )  { alias int Foo;}
Foo!(typeof(bar)) x;
void bar() { }


-- 

May 14, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2884


Don <clugdbug@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clugdbug@yahoo.com.au




--- Comment #3 from Don <clugdbug@yahoo.com.au>  2009-05-14 05:14:21 PDT ---
This code from issue 884 (exactly 2000 bugs earlier) creates the same ICE error
message.
It may or may not be a duplicate; I'm putting it here so that 884 can be
closed.
------
template Inner(Ts...) {
    const Inner = .Inner!((Ts));
}
auto x = Inner!();

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 09, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2884


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|                            |FIXED




--- Comment #4 from Walter Bright <bugzilla@digitalmars.com>  2009-07-09 02:48:11 PDT ---
Fixed dmd 1.046 and 2.031

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