April 14, 2011 [dmd-internals] [D-Programming-Language/dmd] 11df10: Fix broken test -- CTFE on an uninitialized variab... | ||||
---|---|---|---|---|
| ||||
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. |
Copyright © 1999-2021 by the D Language Foundation