www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 524] New: Compiler crash when compiling

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=524

           Summary: Compiler crash when compiling
           Product: D
           Version: 0.174
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: aarti interia.pl


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.


-- 
Nov 15 2006
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=524





------- Comment #1 from aarti interia.pl  2006-11-15 16:46 -------
Created an attachment (id=50)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=50&action=view)
Trying to compile attachment makes compiler crashing...


-- 
Nov 15 2006
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=524


aarti interia.pl changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Compiler crash when         |Compiler crash when
                   |compiling                   |compiling




------- Comment #2 from aarti interia.pl  2006-11-26 05:45 -------
After some testing it occurred that this regression was introduced in 0.173.
0.172 works fine.


-- 
Nov 26 2006
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=524





------- Comment #3 from lovesyao hotmail.com  2006-11-26 07:25 -------
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
}


-- 
Nov 26 2006
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=524


deewiant gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #4 from deewiant gmail.com  2006-12-03 03:40 -------
Fixed in DMD 0.176.


-- 
Dec 03 2006
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=524





------- Comment #5 from thomas-dloop kuehne.cn  2006-12-30 20:10 -------
Added to DStress as
http://dstress.kuehne.cn/run/t/template_class_19_A.d


-- 
Dec 30 2006