[Issue 17828] [ICE] Internal error: ddmd/backend/cgcs.c 352 - CTFE appending to an array on a struct from a template
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jun 29 17:01:13 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=17828
Basile-z <b2.temp at gmx.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |accepts-invalid
--- Comment #2 from Basile-z <b2.temp at gmx.com> ---
The root of the problem is a check not done during sema I believe, because the
following works
---
struct Content{ubyte parts;}
void main(){
enum Content content = {};
content.parts = 2;
}
---
fixing this last example should prevent the ICE as well.
BTW another evidence showing that it's a missing bit in the front end is that
LDC2 crashes too (with the reduced test case of comment #2).
--
More information about the Digitalmars-d-bugs
mailing list