Timon Gehr: > The reason is that it is parsed as function-local and that DMD's parser > for some strange reason uses different grammar rules for declarations > when inside a function body. You could maybe file a bug report. http://d.puremagic.com/issues/show_bug.cgi?id=7065 Bye, bearophile