casting as char at CT fail
Shammah Chancellor
anonymous at coward.com
Thu Nov 28 06:54:14 PST 2013
On 2013-11-28 03:40:25 +0000, Kenji Hara said:
> On Tuesday, 26 November 2013 at 23:31:16 UTC, bioinfornatics wrote:
>> Hi,
>> this time i have so many question about CT …
>> iws and ibuclaw help me for this.
>>
>> I stuck currently about a cast at CT -> http://www.dpaste.dzfl.pl/1a28a22c
>>
>> it seem this should works but not…
>> So if you confirm maybe a report is needed
>>
>> thanks to everyone
>
> I found two compiler issues:
>
> https://d.puremagic.com/issues/show_bug.cgi?id=11627
> https://d.puremagic.com/issues/show_bug.cgi?id=11629
>
> Kenji Hara
Kenji you are awesome!
Also, I had got his code working to a point:
http://www.dpaste.dzfl.pl/985a2f42 and got another compiler bug.
/opt/compilers/dmd2/include/std/range.d(4220): Error: Internal Compiler
Error: CTFE literal Tuple(void, void)._expand_field_0
dmd: ctfeexpr.c:359: Expression* copyLiteral(Expression*): Assertion
`0' failed.
Seems to happen at the end while trying to instantiate the enum.
I am having trouble turning it into a reduced test case. Can't find
the source of the problem. Here's the full snippet:
http://www.dpaste.dzfl.pl/fork/985a2f42
Thanks for looking into this!
More information about the Digitalmars-d-learn
mailing list