Bug 2751 – incorrect scope storage class vardeclaration tocbuffer

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2009-03-20T08:09:00Z
Last change time
2014-04-18T09:12:02Z
Assigned to
bugzilla
Creator
davidl

Comments

Comment #0 by davidl — 2009-03-20T08:09:41Z
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 ");
Comment #1 by bugzilla — 2009-04-01T13:50:04Z
Fixed DMD 1.042 and 2.027