D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 20415 - ice in dwarfeh and when optimizations are enabled
Summary: ice in dwarfeh and when optimizations are enabled
Status: RESOLVED WORKSFORME
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86_64 Linux
: P1 regression
Assignee: No Owner
URL:
Keywords: EH, ice
Depends on:
Blocks:
 
Reported: 2019-11-24 10:14 UTC by basile-z
Modified: 2021-03-18 09:30 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 basile-z 2019-11-24 10:14:15 UTC
---
#!dmd -O
void t()
{
  auto a = A(false ? B().p : null);
}

struct A
{
  void* p;
}

struct B
{
  void* p;
  ~this() {}
}
---
Comment 1 Dlang Bot 2019-11-29 18:46:24 UTC
@RazvanN7 created dlang/dmd pull request #10630 "Fix Issue 20415 - ice in dwarfeh and when optimizations are enabled" fixing this issue:

- Fix Issue 20415 - ice in dwarfeh and when optimizations are enabled

https://github.com/dlang/dmd/pull/10630
Comment 2 RazvanN 2019-11-29 18:49:59 UTC
This is a regression from 2.069.2
Comment 3 basile-z 2021-03-18 07:47:38 UTC
fixed at some point
Comment 4 Dlang Bot 2021-03-18 09:30:08 UTC
dlang/dmd pull request #12285 "issue 20415 - add test case" was merged into master:

- a569c2b3297b7058865f4c0dc47ca09b7d1dcd70 by Basile Burg:
  issue 20415 - add test case
  
  Issue closed as WORKSFORME because it was fixed at some point.
  Add the original test case in case of.

https://github.com/dlang/dmd/pull/12285