[Issue 19578] New: Generated function parameter names may shadow existing symbols

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jan 12 22:15:47 UTC 2019


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: nobody at puremagic.com
          Reporter: snarwin+bugzilla at gmail.com

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");
}
---

--


More information about the Digitalmars-d-bugs mailing list