Bug 1915 – new struct destructor : ice dmd

Status
RESOLVED
Resolution
WORKSFORME
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2008-03-12T19:40:00Z
Last change time
2015-06-09T01:14:35Z
Keywords
ice-on-valid-code
Assigned to
bugzilla
Creator
spam

Comments

Comment #0 by spam — 2008-03-12T19:40:04Z
in dmd 2.012 this crashes the compiler after just adding an empty struct destructor, i really dont have a clue why: [CODE] module main; import std.math; struct Foo{ ~this(){} //comment out and it works as expected public int opCmp(Foo _a){return 0;} } void main(){ Foo[] m_imgs; auto res = std.algorithm.isSorted!("a > b")(m_imgs); } [/CODE]
Comment #1 by bugs-d — 2009-03-29T22:45:13Z
Works for me in DMD 2.026, and D 1 doesn't allow struct destructors. -[Unknown]