Dechenjm / crack-language

Automatically exported from code.google.com/p/crack-language
Other
0 stars 0 forks source link

Compiler segfaults due to function with generic argument called incorrectly #98

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Calling a function that has a specialized generic argument with the wrong 
specialization makes the compiler segfault, e.g.:

import crack.io cout;

class A[Elem]{
  Elem member;
  oper init(Elem new):member = new {
  }
}

void genFunc(A[String] inp){
  cout `$(inp.member)\n`;
}

A[int] intWrap = {10};
genFunc(intWrap);

Original issue reported on code.google.com by Conrad.S...@gmail.com on 25 May 2012 at 6:30

GoogleCodeExporter commented 9 years ago
I can't reproduce this, but I suspect that it was the same underlying bug that 
caused Issue 99, can you retest? 

Original comment by mind...@gmail.com on 19 Jun 2012 at 11:29

GoogleCodeExporter commented 9 years ago
It's fixed now, thanks!

Original comment by Conrad.S...@gmail.com on 19 Jun 2012 at 3:01