Summary: Segfault(dsymbol.c): deprecated @disable
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Don <> 2011-07-27 01:55:55 PDT ---
deprecated @disable int foo;
int zoo = foo;

Found by clang's static analysis.

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:
------- You are receiving this mail because: -------

Reply via email to