Thread overview | ||||||||
---|---|---|---|---|---|---|---|---|
|
October 31, 2013 Assertion failure: '0' on line 1215 in file 'glue.c' | ||||
---|---|---|---|---|
| ||||
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. |
October 31, 2013 Re: Assertion failure: '0' on line 1215 in file 'glue.c' | ||||
---|---|---|---|---|
| ||||
Posted in reply to Wolftein | 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
|
October 31, 2013 Re: Assertion failure: '0' on line 1215 in file 'glue.c' | ||||
---|---|---|---|---|
| ||||
Posted in reply to Wolftein | 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
|
October 31, 2013 Re: Assertion failure: '0' on line 1215 in file 'glue.c' | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile | 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.
|
October 31, 2013 Re: Assertion failure: '0' on line 1215 in file 'glue.c' | ||||
---|---|---|---|---|
| ||||
Posted in reply to Wolftein | 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 |
October 31, 2013 Re: Assertion failure: '0' on line 1215 in file 'glue.c' | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile | 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
|
Copyright © 1999-2021 by the D Language Foundation