Just caught a bug in some code:
auto fun(string f = __FUNCTION__)()
{
string f = "abc";
return f;
}
void main()
{
assert(fun() == "abc"); // passes
}
In the spirit of avoidance of all hijacking/shadowing, this should probably be an error.
Comment #1 by b2.temp — 2023-12-16T18:23:53Z
*** This issue has been marked as a duplicate of issue 6980 ***