February 09, 2018 [Issue 16521] Wrong code generation with switch + static foreach | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=16521 Seb <greensunny12@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |greensunny12@gmail.com --- Comment #11 from Seb <greensunny12@gmail.com> --- FWIW this works with static foreach --- void main () { sformat(0, uint.max); } void sformat (Args...) (int index, Args args) { JT: switch (index) { static foreach (idx, unused; args) { case idx: assert(unused == args[idx], "Borken compiler"); break JT; } default: assert(0); } } --- https://run.dlang.io/is/eJvNFB -- |
September 05, 2020 [Issue 16521] Wrong code generation with switch + static foreach | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=16521 LucienPe <lucien.perregaux@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |lucien.perregaux@gmail.com Resolution|--- |INVALID -- |
March 10, 2021 [Issue 16521] Wrong code generation with switch + static foreach | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=16521 Imperatorn <johan_forsberg_86@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |johan_forsberg_86@hotmail.c | |om --- Comment #12 from Imperatorn <johan_forsberg_86@hotmail.com> --- Any update on this? -- |
March 12, 2021 [Issue 16521] Wrong code generation with switch + static foreach | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=16521 --- Comment #13 from Steven Schveighoffer <schveiguy@gmail.com> --- (In reply to Imperatorn from comment #12) > Any update on this? What do you mean? It's resolved as invalid. The code no longer compiles (for a while now). -- |
Copyright © 1999-2021 by the D Language Foundation