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
Comment #2 by bugzilla — 2015-05-23T23:36:22Z
Comment #3 by github-bugzilla — 2015-05-30T15:31:46Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/fb10be8edcafbe4596b240b76fbbdf74cf2aafe8 fix Issue 14610 - [REG2.067] 'null this' assertion missing in 2.067 https://github.com/D-Programming-Language/dmd/commit/7dd1d175f8cdf12f8cec4646a4974c0e1187c137 Merge pull request #4678 from WalterBright/fix14610 fix Issue 14610 - [REG2.067] 'null this' assertion missing in 2.067
Comment #4 by github-bugzilla — 2015-06-17T21:05:24Z