Mercurial > projects > ddmd
comparison dmd/StructDeclaration.d @ 87:b17640f0e4e8
Fixed a bug with a Scope.this(Scope enclosing) being called instead of Scope.clone() method (as a copy ctor replacement)
author | korDen |
---|---|
date | Mon, 30 Aug 2010 19:56:27 +0400 |
parents | 43073c7c7769 |
children | 23280d154c5b |
comparison
equal
deleted
inserted
replaced
83:ee670dd808a8 | 87:b17640f0e4e8 |
---|---|
294 fields.setDim(0); | 294 fields.setDim(0); |
295 structsize = 0; | 295 structsize = 0; |
296 alignsize = 0; | 296 alignsize = 0; |
297 structalign = 0; | 297 structalign = 0; |
298 | 298 |
299 scope_ = scx ? scx : new Scope(sc); | 299 scope_ = scx ? scx : sc.clone(); |
300 scope_.setNoFree(); | 300 scope_.setNoFree(); |
301 scope_.module_.addDeferredSemantic(this); | 301 scope_.module_.addDeferredSemantic(this); |
302 //printf("\tdeferring %s\n", toChars()); | 302 //printf("\tdeferring %s\n", toChars()); |
303 return; | 303 return; |
304 } | 304 } |