D-Programming-Language/dmd — pull request #448 by donc (2011-10-14 08:03:22+00:00)
Title: Pointer casts in CTFE: fixes 6792 and 6800

Disallow pointer casts which involve reinterpret casts. These commits allow as many other casts as possible: const casts and changes of signedness (int* to uint*). Also casts to void*, and allow casts back from void*, but only back to the original type.

6792 [CTFE] ICE with pointer cast of indexed array
6800 [CTFE] dangerous pointer casts should be rejected