[Issue 11975] Compile time error on null dereference
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jan 23 00:10:31 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=11975
Iain Buclaw <ibuclaw at ubuntu.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ibuclaw at ubuntu.com
--- Comment #5 from Iain Buclaw <ibuclaw at ubuntu.com> 2014-01-23 00:10:24 PST ---
(In reply to comment #0)
> Following code leads to segmentation fault:
>
>
> abstract class foo_base(T)
It looks like your treating a class as if it is equivalent to C++?
An error on null dereference is a bit of a problem as it could potential be
more breaking than good. Not to mention all the cases that we can't catch.
---
shared MyClass foo;
/* 'foo' gets initialised by another thread in the meantime...
Or at least so we expect. :)
*/
foo.bar(); // BOOM!
--
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