Bug 524 – Compiler crash when compiling

Status
RESOLVED
Resolution
FIXED
Severity
blocker
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
Other
OS
Linux
Creation time
2006-11-15T16:42:00Z
Last change time
2014-02-15T13:21:45Z
Assigned to
bugzilla
Creator
aarti

Attachments

IDFilenameSummaryContent-TypeSize
50Any.zipTrying to compile attachment makes compiler crashing...application/octet-stream1995

Comments

Comment #0 by aarti — 2006-11-15T16:42:27Z
boost::any implementation in d has a bad luck... It was already not linking when compiling as separate files (bug #384), and in 0.174 compiler just crashes when trying to compile it... Binary is not produced. I could not gather much more info than above, so I attache test files.
Comment #1 by aarti — 2006-11-15T16:46:10Z
Created attachment 50 Trying to compile attachment makes compiler crashing...
Comment #2 by aarti — 2006-11-26T05:45:31Z
After some testing it occurred that this regression was introduced in 0.173. 0.172 works fine.
Comment #3 by lovesyao — 2006-11-26T07:25:17Z
I think that this bug is caused in nested template class. I made simple testcase: static class Test{ void test(T)() { new Inner!(T)(); } class Inner(T) { void test(){ new Inner!(T)();}//maybe this is causing infinite loop } } void test(T)(){new Test2!(T)();} class Test2(T) { void test(){ new Test2!(T)();} } void main(){ test!(int);//ok (new Test).test!(int);//crash }
Comment #4 by matti.niemenmaa+dbugzilla — 2006-12-03T03:40:50Z
Fixed in DMD 0.176.
Comment #5 by thomas-dloop — 2006-12-30T20:10:36Z