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

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 ");


Reply via email to