D-Programming-Language/dmd — pull request #1186 by donc (2012-10-16 10:50:52+00:00)
Title: 8801 assigning to __ctfe crashes the compiler

Any use of a symbol beginning with __ is undefined behaviour but this particular example is worth detecting because it is something people may actually try to do.

The example in the bug report was a declaration causing an ICE, but the same ICE can also be created by anything using __ctfe as an an lvalue.

We need checks in two places, because constructing a variable doesn't call toLvalue().