Thread overview | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
June 06, 2015 [Issue 14501] template result is reused for equal but non-identical alias arguments | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14501 Marc Schütz <schuetzm@gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |schuetzm@gmx.net -- |
July 27, 2017 [Issue 14501] template result is reused for equal but non-identical alias arguments | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14501 RazvanN <razvan.nitu1305@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |razvan.nitu1305@gmail.com --- Comment #1 from RazvanN <razvan.nitu1305@gmail.com> --- The problem here is that when the template is instantiated the compiler basically generates, roughly, the following code: auto identifier(enum a) { return __traits(identifier, a); } Subsequent calls to identifier which do not instantiate the template will just use the already generated function (I'm not sure if a function is generated, but that is not important here) thus making traits evaluate the identifier to the first identifier that was used to instantiate the template. -- |
August 20, 2018 [Issue 14501] template result is reused for equal but non-identical alias arguments | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14501 ag0aep6g <ag0aep6g@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |claudemr@live.fr --- Comment #2 from ag0aep6g <ag0aep6g@gmail.com> --- *** Issue 18569 has been marked as a duplicate of this issue. *** -- |
January 11, 2020 [Issue 14501] template result is reused for equal but non-identical alias arguments | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14501 berni44 <bugzilla@d-ecke.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |atila.neves@gmail.com --- Comment #3 from berni44 <bugzilla@d-ecke.de> --- *** Issue 17441 has been marked as a duplicate of this issue. *** -- |
January 11, 2020 [Issue 14501] template result is reused for equal but non-identical alias arguments | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14501 berni44 <bugzilla@d-ecke.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bugzilla@d-ecke.de Severity|normal |major --- Comment #4 from berni44 <bugzilla@d-ecke.de> --- Raising importance to "major", because this causes several issues in Phobos, where no workaround exists. -- |
February 15, 2020 [Issue 14501] template result is reused for equal but non-identical alias arguments | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14501 moonlightsentinel@disroot.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |moonlightsentinel@disroot.o | |rg --- Comment #5 from moonlightsentinel@disroot.org --- Using T... intead of an alias worked until https://github.com/dlang/dmd/pull/1368 -- |
February 15, 2022 [Issue 14501] template result is reused for equal but non-identical alias arguments | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14501 RazvanN <razvan.nitu1305@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://issues.dlang.org/sh | |ow_bug.cgi?id=22540 -- |
December 17, 2022 [Issue 14501] template result is reused for equal but non-identical alias arguments | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14501 Iain Buclaw <ibuclaw@gdcproject.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P1 |P2 -- |
Copyright © 1999-2021 by the D Language Foundation