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 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






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





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






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





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






Added to DStress as
http://dstress.kuehne.cn/run/t/template_class_19_A.d


-- 
Dec 30 2006