[Issue 651] New: Assertion failure: 'global.errors' on line 2622 in file 'template.c'

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Dec 5 00:36:24 PST 2006


http://d.puremagic.com/issues/show_bug.cgi?id=651

           Summary: Assertion failure: 'global.errors' on line 2622 in file
                    'template.c'
           Product: D
           Version: 0.176
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: kinaba at is.s.u-tokyo.ac.jp


The following program, forwarding an alias tuple to another
template, casues abnormal compiler termination:

  // discovered by shinichiro.h
  void f() {}
  template foo(T) {}
  template bar(T...){ alias foo!(T) buz; }
  alias bar!(f) a;

which prints:

  Assertion failure: 'global.errors' on line 2622 in file 'template.c'

  abnormal program termination

Here's my experiment of replacing "void f() {}" to other statements:
 - import f : same assertion failure
 - class f {} : ok
 - int f : ok
 - const f = 1 : ok
So it is a problem of alias tuples?


-- 




More information about the Digitalmars-d-bugs mailing list