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: nob...@puremagic.com
        ReportedBy: clugd...@yahoo.com.au


--- Comment #0 from Don <clugd...@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: -------

Reply via email to