Hi,
A different internal compiler error, this time with lambdas. Reading the
first class function technote, I might have expected this to work.....
proc times2(f) {
return 2*f();
}
proc test(k : int) {
var func = lambda() { return k;};
writeln(times2(func));
}
test(2);
buggy2.chpl:1: In function 'times2':
buggy2.chpl:2: internal error: CAL1184 chpl Version 1.14.0.2a61e6e
Internal errors indicate a bug in the Chapel compiler ("It's us, not you"),
and we're sorry for the hassle. We would appreciate your reporting this
bug --
please see http://chapel.cray.com/bugs.html for instructions. In the
meantime,
the filename + line number above may be useful in working around the issue.
Thanks!
-- Nikhil
PS. I'm happy to file these as Github issues, if that would be easier.....
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Chapel-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/chapel-users