D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 23516 - Anonymous enum without base type causes segfault inferring member value
Summary: Anonymous enum without base type causes segfault inferring member value
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86_64 Linux
: P1 critical
Assignee: No Owner
URL:
Keywords: pull
Depends on:
Blocks:
 
Reported: 2022-11-28 11:32 UTC by Nick Treleaven
Modified: 2022-12-15 22:50 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 Nick Treleaven 2022-11-28 11:32:32 UTC
struct Q {
	enum max = Q();
}

enum {
	c = Q(),
	d
}

Pull incoming.
Comment 1 Dlang Bot 2022-11-28 11:37:36 UTC
@ntrel created dlang/dmd pull request #14658 "Fix Issue 23516 - Anonymous enum without base type causes segfault inferring member value" fixing this issue:

- Fix Issue 23516 - Anonymous enum without base type causes segfault inferring member value

https://github.com/dlang/dmd/pull/14658
Comment 2 Dlang Bot 2022-12-05 12:06:18 UTC
dlang/dmd pull request #14658 "Fix Issue 23516 - Anonymous enum without base type causes segfault inferring member value" was merged into stable:

- 38e3f6dc01b89c7328701ea06dff1bcfd67cab71 by Nick Treleaven:
  Fix Issue 23516 - Anonymous enum without base type causes segfault inferring member value
  
  Use base type if available

https://github.com/dlang/dmd/pull/14658
Comment 3 Dlang Bot 2022-12-15 22:50:03 UTC
dlang/dmd pull request #14701 "merge stable" was merged into master:

- e419af2af149e86b2a9a976421a076462dd4e566 by Nick Treleaven:
  Fix Issue 23516 - Anonymous enum without base type causes segfault inferring member value (#14658)
  
  Use base type if available

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