www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 4830] New: mtype.c:879: void Type::check(): Assertion `tn->mod == 4' failed

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

           Summary: mtype.c:879: void Type::check(): Assertion `tn->mod ==
                    4' failed
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: ellery-newcomer utulsa.edu


--- Comment #0 from Ellery Newcomer <ellery-newcomer utulsa.edu> 2010-09-06
11:41:29 PDT ---
the code:

alias immutable string[] strings;
strings a = [ ];
strings b = [ ];

dmd 2.048

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 06 2010
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4830


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clugdbug yahoo.com.au
            Summary|mtype.c:879: void           |Regression(2.038) ICE
                   |Type::check(): Assertion    |mtype.c:879: void
                   |`tn->mod == 4' failed       |Type::check(): Assertion
                   |                            |`tn->mod == 4' failed
         OS/Version|Linux                       |All
           Severity|normal                      |regression


--- Comment #1 from Don <clugdbug yahoo.com.au> 2010-09-06 12:00:01 PDT ---
And it's a regression. Worked in 2.037, ICE in 2.038.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 06 2010
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4830



--- Comment #2 from Don <clugdbug yahoo.com.au> 2010-09-29 00:25:22 PDT ---
This was caused by adding this line to AliasDeclaration::semantic() in svn 307
(which was fixing bug 3641 alias shared T U does not work)

+    type = type->addStorageClass(storage_class);
    if (storage_class & (STCref | STCnothrow | STCpure))
    {    // For 'ref' to be attached to function types, and picked

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 29 2010
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4830


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs eml.cc


--- Comment #3 from Don <clugdbug yahoo.com.au> 2010-10-30 06:38:53 PDT ---
*** Issue 5119 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 30 2010
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4830


Walter Bright <bugzilla digitalmars.com> changed:

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


--- Comment #4 from Walter Bright <bugzilla digitalmars.com> 2010-11-07
12:28:56 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