Thread overview
[Issue 6389] New: Segfault(dsymbol.c): deprecated @disable
Jul 27, 2011
Don
Aug 29, 2011
yebblies
Aug 29, 2011
Walter Bright
July 27, 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@puremagic.com
        ReportedBy: clugdbug@yahoo.com.au


--- Comment #0 from Don <clugdbug@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: -------
August 29, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6389


yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch
                 CC|                            |yebblies@gmail.com
           Platform|Other                       |All
         OS/Version|Windows                     |All


--- Comment #1 from yebblies <yebblies@gmail.com> 2011-08-29 15:34:10 EST ---
https://github.com/D-Programming-Language/dmd/pull/352

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 29, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6389


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|                            |FIXED


--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> 2011-08-29 14:31:07 PDT ---
https://github.com/D-Programming-Language/dmd/commit/0af3ae48ccc98fd968aaa993c50ae7ebc0fa39f8

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------