[Issue 11975] Compile time error on null dereference

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jan 22 23:18:55 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=11975


yebblies <yebblies at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yebblies at gmail.com
           Platform|x86_64                      |All
            Version|unspecified                 |D2
            Summary|DMD64 D Compiler            |Compile time error on null
                   |v2.065-devel-3b37a57        |dereference
                   |crashes for simple          |
                   |inheritance                 |
         OS/Version|Linux                       |All
           Severity|blocker                     |enhancement


--- Comment #4 from yebblies <yebblies at gmail.com> 2014-01-23 18:18:50 EST ---
(In reply to comment #3)
> Why is the compiler not able to tell me the problem and I need to go through a
> segfault ?
> 
> Regards, Sumit

The analysis to detect this has not been implemented, and there is some
question as to whether it is worth implementing given how easy it is to
identify the source of the segfault in a debugger.

It will actually detect this simple case if you compile with -O.

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


More information about the Digitalmars-d-bugs mailing list