www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2751] New: incorrect scope storage class vardeclaration tocbuffer

reply d-bugmail puremagic.com writes:
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 digitalmars.com
        ReportedBy: davidl 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 ");


-- 
Mar 20 2009
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2751


bugzilla digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #1 from bugzilla digitalmars.com  2009-04-01 13:50 -------
Fixed DMD 1.042 and 2.027


-- 
Apr 01 2009