www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Assertion failure: '0' on line 1215 in file 'glue.c'

reply "Wolftein" <agustin.l.alvarez hotmail.com> writes:
Assertion failure: '0' on line 1215 in file 'glue.c'

When trying to compile this:

TypeTuple!(void delegate(Event), EventPriority, ulong)[uint] 
_ownerList;

Is that a compiler bug or i'm doing something that i don't 
suppose to do.
Oct 31 2013
next sibling parent reply "bearophile" <bearophileHUGS lycos.com> writes:
Wolftein:

 Assertion failure: '0' on line 1215 in file 'glue.c'

 When trying to compile this:

 TypeTuple!(void delegate(Event), EventPriority, ulong)[uint] 
 _ownerList;

 Is that a compiler bug or i'm doing something that i don't 
 suppose to do.
It seems both a compiler bug fit for bugzilla, and a bug in your code (TypeTuples are not meant for delegates, I think). Create a minimal example for Bugzilla... Bye, bearophile
Oct 31 2013
next sibling parent reply "Wolftein" <agustin.l.alvarez hotmail.com> writes:
On Thursday, 31 October 2013 at 19:39:37 UTC, bearophile wrote:
 Wolftein:

 Assertion failure: '0' on line 1215 in file 'glue.c'

 When trying to compile this:

 TypeTuple!(void delegate(Event), EventPriority, ulong)[uint] 
 _ownerList;

 Is that a compiler bug or i'm doing something that i don't 
 suppose to do.
It seems both a compiler bug fit for bugzilla, and a bug in your code (TypeTuples are not meant for delegates, I think). Create a minimal example for Bugzilla... Bye, bearophile
TypeTuple!(uint, uint)[uint] -> won't work neither There seems to be a problem with TypeTuple and associative arrays in general.
Oct 31 2013
parent "Wolftein" <agustin.l.alvarez hotmail.com> writes:
On Thursday, 31 October 2013 at 19:48:19 UTC, Wolftein wrote:
 On Thursday, 31 October 2013 at 19:39:37 UTC, bearophile wrote:
 Wolftein:

 Assertion failure: '0' on line 1215 in file 'glue.c'

 When trying to compile this:

 TypeTuple!(void delegate(Event), EventPriority, ulong)[uint] 
 _ownerList;

 Is that a compiler bug or i'm doing something that i don't 
 suppose to do.
It seems both a compiler bug fit for bugzilla, and a bug in your code (TypeTuples are not meant for delegates, I think). Create a minimal example for Bugzilla... Bye, bearophile
TypeTuple!(uint, uint)[uint] -> won't work neither There seems to be a problem with TypeTuple and associative arrays in general.
Reported :) http://d.puremagic.com/issues/show_bug.cgi?id=11404
Oct 31 2013
prev sibling parent "Jonathan M Davis" <jmdavisProg gmx.com> writes:
On Thursday, October 31, 2013 20:39:36 bearophile wrote:
 Wolftein:
 Assertion failure: '0' on line 1215 in file 'glue.c'
 
 When trying to compile this:
 
 TypeTuple!(void delegate(Event), EventPriority, ulong)[uint]
 _ownerList;
 
 Is that a compiler bug or i'm doing something that i don't
 suppose to do.
It seems both a compiler bug fit for bugzilla, and a bug in your code (TypeTuples are not meant for delegates, I think).
Ah, yeah. TypeTuple won't work there (I missed that and thought that he was using a Tuple). TypeTuple is really only for metaprogramming, and it's a compile-time only entity, so it won't work in an AA. std.typecons.Tuple is what he'd have to use. - Jonathan M Davis
Oct 31 2013
prev sibling parent "Jonathan M Davis" <jmdavisProg gmx.com> writes:
On Thursday, October 31, 2013 20:30:25 Wolftein wrote:
 Assertion failure: '0' on line 1215 in file 'glue.c'
 
 When trying to compile this:
 
 TypeTuple!(void delegate(Event), EventPriority, ulong)[uint]
 _ownerList;
 
 Is that a compiler bug or i'm doing something that i don't
 suppose to do.
Any and all assertions in the compiler which are triggered when compileng are a bug in the compiler. So, yes, this is a compiler bug - regardless of whether your code is valid or not (though I don't see anything obviously wrong with it). - Jonathan M Davis
Oct 31 2013