January 12, 2019 [Issue 19578] New: Generated function parameter names may shadow existing symbols | ||||
---|---|---|---|---|
| ||||
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@puremagic.com Reporter: snarwin+bugzilla@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"); } --- -- |
Copyright © 1999-2021 by the D Language Foundation