Test case: -------------------------------- static assert({ int x = 123; int* p = &x; float* q = cast(float*)p; // <-- unsafe pointer cast return *q; }()); -------------------------------- y.d(2): Error: CTFE internal error: illegal pointer value cast(float*)123u Assertion failed: (isStackValueValid(newval)), function createStackValue, file interpret.c, line 4998. Abort trap: 6 --------------------------------
https://github.com/D-Programming-Language/dmd/commit/7ef3b2bb9e740df39108957ae5e3b2aa8253d351 https://github.com/D-Programming-Language/dmd/pull/284
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル