www.digitalmars.com         C & C++   DMDScript  

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

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

           Summary: Assertion failure: 'global.errors' on line 3820 in file
                    'template.c'
           Product: D
           Version: 2.017
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: pelekhay gmail.com


folowing code crashes dmd

  template ArgTypes( F )
  {
    U argTypes(R, U...)(R delegate (U));
    F func();

    alias typeof(argTypes(func())) ArgTypes;
  }

  struct S
  {
    ArgTypes!(typeof(opCall))[0] f_arg;
    static S opCall(int a_arg)
    {
      typeof(return) result;
      result.f_arg = a_arg;
      return result;
    }
  }


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


clugdbug yahoo.com.au changed:

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




------- Comment #1 from clugdbug yahoo.com.au  2009-04-24 03:08 -------
Reduces to:
    template ArgTypes( F )  {  }
    ArgTypes!(typeof(foo)) f_arg;
    void foo() { }
which is the same as 2884.



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


-- 
Apr 24 2009