D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 19922 - ICE: Segmentation fault with typeid()
Summary: ICE: Segmentation fault with typeid()
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 critical
Assignee: No Owner
URL:
Keywords: pull
Depends on:
Blocks:
 
Reported: 2019-05-30 17:09 UTC by Iain Buclaw
Modified: 2019-06-09 14:08 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Iain Buclaw 2019-05-30 17:09:01 UTC
module object;
class Object{}
auto f() { Object o; return typeid(o); }
Comment 1 Iain Buclaw 2019-05-30 17:11:05 UTC
Based on issue 19911, and looking at other places that fall foul of blindly dereferencing Type::typeinfo.
Comment 2 Dlang Bot 2019-06-01 14:48:15 UTC
@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 Dlang Bot 2019-06-02 06:05:01 UTC
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 Dlang Bot 2019-06-09 14:08:14 UTC
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