D-Programming-Language/dmd — pull request #1092 by donc (2012-08-22 07:05:30+00:00)
Title: Fix issue 7876 [CTFE] assertion failure on invalid stack reference

Generate an error when returning a pointer to a local variable.
Includes the case where the pointer is a member of an array or struct.
(Does not yet check for escaping pointers to local structs or static arrays, but those don't cause an ICE).