www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 8645] New: ICE: Assertion failed: (0), function totym, file glue.c, line 1150.

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

           Summary: ICE: Assertion failed: (0), function totym, file
                    glue.c, line 1150.
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: gileadis gmail.com



---
I'm getting an ICE with the attached code (reduced by the amazing DustMite). 
It has to do with building a delegate literal.  I'm working on building a mock
objects framework inspired by Mockito.  DustMite reduced the code enough that
it's a bit nonsensical in the attachment, but it does reveal the error.

Found in DMD 2.060 on Mac OSX Mountain Lion.

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




---
Created an attachment (id=1144)
Code that reveals the bug.

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


bearophile_hugs eml.cc changed:

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



Further manual reduction:


template TypeTuple(TList...) {
    alias TList TypeTuple;
}
void main() {
    alias TypeTuple!(int) Foo;
    int bar;
    Foo args = cast(Foo)bar;
}

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


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice, pull
           Platform|x86_64                      |All
         OS/Version|Mac OS X                    |All



https://github.com/D-Programming-Language/dmd/pull/1120

Current dmd doesn't detect invalid casting in front-end. I think this is one of
the big issue.

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




Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/2da26af56e702bf595b7b42e3a464ebf0016d7b9
fix Issue 8645 - ICE: Assertion failed: (0), function totym, file glue.c, line
1150.

https://github.com/D-Programming-Language/dmd/commit/da5bba672eaf0d9aa224aeabe524336f4e3e9e16


Issue 8645 - ICE: Assertion failed: (0), function totym, file glue.c, line
1150.

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


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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