fix, prevent a few traits to hijack the "i" identifier#5446
Conversation
|
Isn't the fact that there is a conflict in the first place a bug in the code (or compiler)? |
|
No, "i" was just a poorly chosen identifier. I have already encountered the same issue with a custom template. People have to take care to the identifiers they use in things that get mixed or that are templates. |
|
Why should the name of a template parameter matter? It shouldn't leak into the external scope, and of course take precedence in the internal scope. |
|
this fix is pragmatic. |
|
If the name is leaking, it's a compiler bug and needs to be fixed. Picking a different name just changes what conflicts. And while |
|
In the meantime, waiting for a compiler fix, this workaround is there. |
|
Is there a Bugzilla issue for the compiler bug? Looks nasty. |
|
Wow, this looks really nasty. I think it needs to be fixed in the compiler. Hacking the identifier to be |
from IRC, discovered with this paste https://dpaste.dzfl.pl/8d46ad513fbe, by "mitch_"