www.digitalmars.com         C & C++   DMDScript  

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

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: cruxic gmail.com



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: -------
Sep 14 2010
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4871


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
                 CC|                            |clugdbug yahoo.com.au




 I'm new to D so this might be invalid syntax but it shouldn't crash the
 compiler.
Yes. Thanks for the excellent reduced test case. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 20 2010
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4871


Walter Bright <bugzilla digitalmars.com> changed:

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



12:29:29 PST ---
*** This issue has been marked as a duplicate of issue 4434 ***

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