https://issues.dlang.org/show_bug.cgi?id=19578

          Issue ID: 19578
           Summary: Generated function parameter names may shadow existing
                    symbols
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: minor
          Priority: P1
         Component: dmd
          Assignee: [email protected]
          Reporter: [email protected]

The following program should print "free variable", but instead prints
"parameter":

---
import std.stdio;

string _param_0 = "free variable";

void fun(string)
{
    writeln(_param_0);
}

void main()
{
    fun("parameter");
}
---

--

Reply via email to