[Issue 4871] New: compiler crash: dmd: mtype.c:875: void Type::check(): Assertion `tn->mod & 4 || tn->mod & 1' failed.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Sep 14 22:48:00 PDT 2010


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

           Summary: compiler crash: dmd: mtype.c:875: void Type::check():
                    Assertion `tn->mod & 4 || tn->mod & 1' failed.
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: cruxic at gmail.com


--- Comment #0 from AdamB <cruxic at gmail.com> 2010-09-14 22:47:30 PDT ---
Running dmd v2.048 the compiler seems to crash on code like this:

  alias ubyte foo;
  alias const foo * const_fooP;

  void main()
  {
  }

The error is:

dmd: mtype.c:875: void Type::check(): Assertion `tn->mod & 4 || tn->mod & 1'
failed.
Aborted


I'm new to D so this might be invalid syntax but it shouldn't crash the
compiler.

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


More information about the Digitalmars-d-bugs mailing list