Summary: [CTFE] Stack overflow with struct by ref
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2010-11-22 17:09:12 PST ---
This D2 program generates a Stack Overflow with DMD 2.050 despite the stack
dept is very small:

struct Foo { int x; }
void bar(int n, ref Foo f) {
    if (n)
        bar(n - 1, f);
int spam() {
    bar(1, Foo());
    return 0;
enum _ = spam();
void main() {}

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to