[Issue 6389] New: Segfault(dsymbol.c): deprecated @disable
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jul 27 01:56:04 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6389
Summary: Segfault(dsymbol.c): deprecated @disable
Product: D
Version: D2
Platform: Other
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: clugdbug at yahoo.com.au
--- Comment #0 from Don <clugdbug at yahoo.com.au> 2011-07-27 01:55:55 PDT ---
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')
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list