[dmd-internals] [D-Programming-Language/dmd] 11df10: Fix broken test -- CTFE on an uninitialized variab...
noreply at github.com
noreply at github.com
Thu Apr 14 00:46:24 PDT 2011
Branch: refs/heads/master
Home: https://github.com/D-Programming-Language/dmd
Commit: 11df10849ee0db64a47cd0c4ee3dd63baeddc76c
https://github.com/D-Programming-Language/dmd/commit/11df10849ee0db64a47cd0c4ee3dd63baeddc76c
Author: Don Clugston <dclugston at googlemail.com>
Date: 2011-04-14 (Thu, 14 Apr 2011)
Changed paths:
M test/runnable/xtest46.d
Log Message:
-----------
Fix broken test -- CTFE on an uninitialized variable
This shouldn't compile. In most cases, a const variable with no initializer
could be set by 'this' (if it is a struct member) or by static this (if it
is a global). We could allow this particular case (a local variable in a
static function) to compile, but there doesn't seem to be much point in
introducing that corner case.
More information about the dmd-internals
mailing list