Bug 13131 – [2.066-b3] dmd: glue.c:1492: unsigned int totym(Type*): Assertion `0' failed.

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-07-14T14:46:00Z
Last change time
2014-08-22T08:04:32Z
Keywords
ice, pull
Assigned to
nobody
Creator
sfrijters

Attachments

IDFilenameSummaryContent-TypeSize
1369DLBC.dustmite.reduced.tarReduced test caseapplication/octet-stream30720

Comments

Comment #0 by sfrijters — 2014-07-14T14:46:05Z
As a preliminary report: this error was triggered by my code both by the old compiler version I was using (built from git sometime in April 2014), and a freshly pulled 2.066-b3 compiler. dmd: glue.c:1492: unsigned int totym(Type*): Assertion `0' failed. My first attempt to build a reduced test case failed, but I will make another attempt shortly if I can get DustMite to work to flesh out the report a bit more, so consider this a placeholder for now.
Comment #1 by sfrijters — 2014-07-14T18:50:29Z
Created attachment 1369 Reduced test case Okay, I've let Dustmite have a go at my code and I've done some manual cleanup, but this is about as far as I can go. Some strange things are happening: * In dlbc/parameters.d: the createParameterMixins function is never called, but if I comment it out the error changes to: src/dlbc/elec/elec.d(8): Error: template instance elecConnOf!gconn template 'elecConnOf' is not defined This template was in the original code but has been removed by dustmite. * Similarly, if I try to touch the mixin in dlbc/io/checkpoint.d it complains about the template. * The same if I try to reorganize the files any further (originally I wanted to put them all in a flat structure for the reduced test case). I hope this is helpful somehow...
Comment #2 by k.hara.pg — 2014-07-15T05:21:38Z
Comment #3 by github-bugzilla — 2014-07-15T19:54:23Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/1bf1759a887faf366d2d3ba3f7d6e3f22d0a36a6 fix Issue 13131 - [2.066-b3] dmd: glue.c:1492: unsigned int totym(Type*): Assertion `0' failed. https://github.com/D-Programming-Language/dmd/commit/433e4d73663fa49a3ef5d192a753a982bd1e98e1 Merge pull request #3764 from 9rnsr/fix13131 Issue 13131 - [2.066-b3] dmd: glue.c:1492: unsigned int totym(Type*): Assertion `0' failed.
Comment #4 by github-bugzilla — 2014-07-16T03:52:26Z
Commit pushed to 2.066 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/b18fb12450211a6570c9f1a0710438570e1cdfeb Merge pull request #3764 from 9rnsr/fix13131 Issue 13131 - [2.066-b3] dmd: glue.c:1492: unsigned int totym(Type*): Assertion `0' failed.
Comment #5 by github-bugzilla — 2014-08-22T08:04:32Z