[Issue 2751] New: incorrect scope storage class vardeclaration tocbuffer

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Mar 20 06:09:38 PDT 2009


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: bugzilla at digitalmars.com
        ReportedBy: davidl at 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 ");


-- 



More information about the Digitalmars-d-bugs mailing list