Thread overview | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
December 15, 2020 [Issue 21482] dynamic indexing into enum dynamic array at ctfe generates TypeInfo in betterC | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=21482 --- Comment #1 from dave287091@gmail.com --- I have discovered that a workaround is as follows: int f_4(int a){ enum int[]foo_ = [1,2,3]; enum int[foo_.length]foo = foo_; if(__ctfe) return foo[a]; return 4; } -- |
December 17, 2020 [Issue 21482] dynamic indexing into enum dynamic array at ctfe generates TypeInfo in betterC | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=21482 dave287091@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |betterC -- |
December 17, 2022 [Issue 21482] dynamic indexing into enum dynamic array at ctfe generates TypeInfo in betterC | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=21482 Iain Buclaw <ibuclaw@gdcproject.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P1 |P3 -- |
January 07, 2023 [Issue 21482] dynamic indexing into enum dynamic array at ctfe generates TypeInfo in betterC | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=21482 dave287091@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Hardware|x86_64 |All OS|Linux |All -- |
January 08, 2023 [Issue 21482] dynamic indexing into enum dynamic array at ctfe generates TypeInfo in betterC | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=21482 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bugzilla@digitalmars.com See Also| |https://issues.dlang.org/sh | |ow_bug.cgi?id=21492 -- |
January 15, 2023 [Issue 21482] dynamic indexing into enum dynamic array at ctfe generates TypeInfo in betterC | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=21482 --- Comment #2 from Walter Bright <bugzilla@digitalmars.com> --- The current error message is: Error: expression `[1, 2, 3]` uses the GC and cannot be used with switch `-betterC` -- |
April 10, 2023 [Issue 21482] dynamic indexing into enum dynamic array at ctfe generates TypeInfo in betterC | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=21482 RazvanN <razvan.nitu1305@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |razvan.nitu1305@gmail.com Resolution|--- |WORKSFORME --- Comment #3 from RazvanN <razvan.nitu1305@gmail.com> --- This seems to have been fixed. this compiles successfully with the latest compiler. -- |
Copyright © 1999-2021 by the D Language Foundation