is this a betterC bug ?
Nicholas Wilson
iamthewilsonator at hotmail.com
Tue Aug 14 13:26:25 UTC 2018
On Tuesday, 14 August 2018 at 13:16:50 UTC, Nicholas Wilson wrote:
> On Tuesday, 14 August 2018 at 13:01:57 UTC, learnfirst1 wrote:
>>
>> enum string[] a = ["a"];
>>
>> extern(C) void main() {
>> int i = 0;
>> auto s = a[i];
>> }
>> ---------------
>> Error: TypeInfo cannot be used with -betterC
>
> Yes. https://issues.dlang.org/show_bug.cgi?id=19169
This seems to be because dynamic array literals are allocated by
default. So that is possibly not a bug, per se but the error
message is definitely not helpful.
More information about the Digitalmars-d-learn
mailing list