Bug 14610 – [REG2.067] 'null this' assertion missing in 2.067
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-05-20T06:27:00Z
Last change time
2015-06-17T21:05:24Z
Assigned to
nobody
Creator
tomer
Comments
Comment #0 by tomer — 2015-05-20T06:27:58Z
Consider the following code:
==================================
struct S {
void foo() {}
}
void main() {
S* s = null;
s.foo();
}
==================================
It used to crash with "null this", e.g.,
[email protected](2): null this
but as of 2.067 it crashes with
core.exception.AssertError@source/main.d(0): Assertion failure
So first of all, the message is undescriptive, and second, the line number is 0, which is very weird.
Comment #1 by dlang-bugzilla — 2015-05-22T04:36:53Z