Bug 19922 – ICE: Segmentation fault with typeid()

Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-05-30T17:09:01Z
Last change time
2019-06-09T14:08:14Z
Keywords
pull
Assigned to
No Owner
Creator
Iain Buclaw

Comments

Comment #0 by ibuclaw — 2019-05-30T17:09:01Z
module object; class Object{} auto f() { Object o; return typeid(o); }
Comment #1 by ibuclaw — 2019-05-30T17:11:05Z
Based on issue 19911, and looking at other places that fall foul of blindly dereferencing Type::typeinfo.
Comment #2 by dlang-bot — 2019-06-01T14:48:15Z
@ibuclaw created dlang/dmd pull request #9941 "fix Issue 19922/19923 - ICE: using typeid() or .classinfo without TypeInfo_Class" fixing this issue: - fix Issue 19922 - ICE: Segmentation fault with typeid() https://github.com/dlang/dmd/pull/9941
Comment #3 by dlang-bot — 2019-06-02T06:05:01Z
dlang/dmd pull request #9941 "fix Issue 19922/19923 - ICE: using typeid() or .classinfo without TypeInfo_Class" was merged into stable: - e604d38bb20e4ad7637f94e3f82d78095cd43885 by Iain Buclaw: fix Issue 19922 - ICE: Segmentation fault with typeid() https://github.com/dlang/dmd/pull/9941
Comment #4 by dlang-bot — 2019-06-09T14:08:14Z
dlang/dmd pull request #10004 "[dmd-cxx] fix Issue 19922/19923 - 19922 - ICE: Segmentation fault with typeid()" was merged into dmd-cxx: - d363030db72f25698025492c39ed2d6048bb51b5 by Iain Buclaw: fix Issue 19922 - ICE: Segmentation fault with typeid() https://github.com/dlang/dmd/pull/10004