[Issue 1915] New: new struct destructor : ice dmd
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Mar 12 17:40:05 PDT 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1915
Summary: new struct destructor : ice dmd
Product: D
Version: 2.012
Platform: PC
OS/Version: Windows
Status: NEW
Keywords: ice-on-valid-code
Severity: major
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: spam at extrawurst.org
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]
--
More information about the Digitalmars-d-bugs
mailing list