[Issue 19454] Name collisions with unnamed function parameters

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Dec 12 01:13:34 UTC 2019


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

Basile-z <b2.temp at gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |bootcamp, patch
                 CC|                            |b2.temp at gmx.com
           Hardware|x86_64                      |All
                 OS|Linux                       |All
           Severity|major                       |normal

--- Comment #1 from Basile-z <b2.temp at gmx.com> ---
---
diff --git a/src/dmd/semantic3.d b/src/dmd/semantic3.d
index 7b08f3639..6e34ed7db 100644
--- a/src/dmd/semantic3.d
+++ b/src/dmd/semantic3.d
@@ -439,7 +439,7 @@ private extern(C++) final class Semantic3Visitor : Visitor
                         /* Generate identifier for un-named parameter,
                          * because we need it later on.
                          */
-                        fparam.ident = id = Identifier.generateId("_param_",
i);
+                        fparam.ident = id = Identifier.generateId("__param_",
i);
                         stc |= STC.temp;
                     }
                     Type vtype = fparam.type;

---

--


More information about the Digitalmars-d-bugs mailing list