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


--- Comment #0 from AdamB <cruxic 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: -------
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


--- Comment #1 from Don <clugdbug yahoo.com.au> 2010-09-20 08:13:35 PDT ---
(In reply to comment #0)
 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


--- Comment #2 from Walter Bright <bugzilla digitalmars.com> 2010-11-07
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