http://d.puremagic.com/issues/show_bug.cgi?id=2751
Summary: incorrect scope storage class vardeclaration tocbuffer Product: D Version: 1.041 Platform: PC OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: bugzi...@digitalmars.com ReportedBy: dav...@126.com since : class C{} void func() { scope a= new C(); } accepted by DMD, thus the toCBuffer of vardeclaration requires to print this scope out for header gen cases. declaration.c ,VarDeclaration::toCBuffer: if (storage_class & STCauto) buf->writestring("auto "); +++ if (storage_class & STCscope) +++ buf->writestring("scope "); --