Summary: alloca() can return the same address inside a function
           Product: D
           Version: 2.040
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: druntime

--- Comment #0 from 2010-02-18 11:17:11 PST ---
import std.stdio: printf;
import std.c.stdlib: alloca;
void main() {
    const int n = 8;
    for (int i; i < 2; i++)
        printf("%p\n", alloca(n));

It prints two times the same address, I don't know why, I think this can be

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

Reply via email to