Bug 19493 – compiler crash when trying to format invalid contracts

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-12-15T16:15:09Z
Last change time
2019-12-11T06:16:54Z
Keywords
ice, pull
Assigned to
No Owner
Creator
Basile-z

Comments

Comment #0 by b2.temp — 2018-12-15T16:15:09Z
When DMD tries to format errors for type of function function in or type of function function out it crashes due to unsafe access to null AST nodes.
Comment #1 by razvan.nitu1305 — 2018-12-18T11:09:02Z
Please provide a minimal test case, otherwise it will be near impossible to fix the issue.
Comment #2 by b2.temp — 2018-12-18T14:41:48Z
Sorry Razvan if you have lost time trying to understand this, the PR was already there. pull : https://github.com/dlang/dmd/pull/9082