[Issue 5845] Regression(2.041) [CTFE] "stack overflow" with recursive ref argument

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed May 18 01:35:45 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=5845



--- Comment #3 from Don <clugdbug at yahoo.com.au> 2011-05-18 01:31:35 PDT ---
(In reply to comment #2)
> (In reply to comment #1)
> > This is not useful as a benchmark.
> 
> Do you want to tell me why?

Because a simpler benchmark that tests exactly the same things is:
int foo(int n) {
  for (int i=0; i< n; ++i) {}
  return 0;
}
static assert(foo(10000));
Your code is longer but it tests NOTHING else.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list