>>343
仕様に
>関数からの auto 返値も禁止されています。
とあるのに。
class CLASS
{
 this(){ printf("c\n"); }
 ~this(){ printf("d\n"); }
}
CLASS foo() {
 auto cc = new CLASS;
 return cc;
}
void main()
{
 CLASS c = foo();
 printf("exp\n");
}
これだとコンパイル通ります。
auto CLASS cc = new CLASS;
と書くと、コンパイルエラー。
よって、
auto cc = new CLASS;
の書き方は、単なる型推論。