[Issue 6951] dependency parameter (-deps) crashes dmd in release build
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Dec 30 04:30:47 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6951
--- Comment #10 from Stephan Dilly <spam at extrawurst.org> 2011-12-30 04:30:43 PST ---
ok smallest testcase so far:
[CODE]
module main;
import std.stdio;
struct BinaryHeap(T){
T[] m_data;
public void insert(T _val){
m_data[$-1] = _val;
if(m_data.length == 1) return;
}
public void opOpAssign(string s)(T _val){
if(s == "~")
{insert(_val);}
}
public T front(){
assert(!isEmpty());
return m_data[0];
}
public bool isEmpty() const{
return (m_data.length == 0);
}
}
void main(string[] argv)
{
BinaryHeap!int foo;
foo ~= 10;
}
[/CODE]
dont forget to build with: dmd -inline -release -noboundscheck -deps=foo.dep
main.d
and just for kicks: while reducing the test case some unrelated changes made
the crash become a choke up of "Out of Memory"
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list