Test case: ----------------------------- static assert({ auto a = [4:"1"]; auto n = *(4 in a); return n; }() == "1"); ----------------------------- x.d(3): Error: CTFE internal error: illegal reference value [4:"1"][4] Assertion failed: (isRefValueValid(newval)), function createRefValue, file interpret.c, line 4978. Abort trap ----------------------------- The ICE also happens when the string "1" is replaced by any reference type (array/aa).
https://github.com/D-Programming-Language/dmd/commit/dc787833ee11ec6313503022b64e2a4aec61e7b6 https://github.com/D-Programming-Language/dmd/commit/501222f6d3d21b6b551851176cc6d5510022e737
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル