Static Array with negative index results in a strange error-message
Steven Schveighoffer
schveiguy at yahoo.com
Mon Apr 23 15:12:49 UTC 2018
On 4/23/18 11:09 AM, Dgame wrote:
> It's really fun playing around:
>
> char[int.max - 1] c;
>
> results in
>
> Internal error: dmd/backend/cgcod.c 634
>
> with DMD 2.079. Guess I or somebody else should report this.
>
>
Yes, this is an ICE (Internal compiler error). Those should ALWAYS be
reported.
-Steve
More information about the Digitalmars-d-learn
mailing list