Bug 22151 – Compiler crash when attempting to assign to function
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-07-27T22:34:31Z
Last change time
2021-10-21T21:39:25Z
Keywords
ice, ice-on-invalid-code, pull
Assigned to
No Owner
Creator
Ate Eskola
Comments
Comment #0 by Ajieskola — 2021-07-27T22:34:31Z
```d
void main()
{ *&main = *&main;
}
```
Attempting to compile leads to "illegal instruction" crash. Tested with 2.097.0 and 2.095.1
Comment #1 by b2.temp — 2021-07-28T00:47:01Z
used to be rejected properly, regressed since 2.064.
Comment #2 by dlang-bot — 2021-10-17T09:13:05Z
@BorisCarvajal created dlang/dmd pull request #13180 "Fix Issue 22151 - Compiler crash when attempting to assign to function" fixing this issue:
- Fix Issue 22151 - Compiler crash when attempting to assign to function
https://github.com/dlang/dmd/pull/13180
Comment #3 by dlang-bot — 2021-10-17T10:04:28Z
dlang/dmd pull request #13180 "Fix Issue 22151 - Compiler crash when attempting to assign to function" was merged into stable:
- 0ecfe825687b6623217723c2644d51b741a619dd by Boris Carvajal:
Fix Issue 22151 - Compiler crash when attempting to assign to function
https://github.com/dlang/dmd/pull/13180
Comment #4 by dlang-bot — 2021-10-21T21:39:25Z
dlang/dmd pull request #13209 "Merge stable into master" was merged into master:
- 3dfa83b4a0375277c3052788d56c431f631492d9 by Boris Carvajal:
Fix Issue 22151 - Compiler crash when attempting to assign to function
https://github.com/dlang/dmd/pull/13209