Bug 6389 – Segfault(dsymbol.c): deprecated @disable

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2011-07-27T01:55:00Z
Last change time
2011-08-29T14:31:07Z
Keywords
ice-on-invalid-code, patch
Assigned to
nobody
Creator
clugdbug

Comments

Comment #0 by clugdbug — 2011-07-27T01:55:55Z
deprecated @disable int foo; int zoo = foo; Found by clang's static analysis. http://octarineparrot.com/assets/dmd/report-KMPT7S.html#EndPath In: void Dsymbol::checkDeprecated(Loc loc, Scope *sc) 616 if (d && d->storage_class & STCdisable) <7> Taking true branch 617 { 618 if (!(sc->func && sc->func->storage_class & STCdisable)) <8> Access to field 'func' results in a dereference of a null pointer (loaded from variable 'sc')
Comment #1 by yebblies — 2011-08-28T22:34:10Z
Comment #2 by bugzilla — 2011-08-29T14:31:07Z