[Issue 17331] appender can't be used for initialization twice

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Mar 20 17:21:18 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=17331

--- Comment #2 from Tomáš Chaloupka <chalucha at gmail.com> ---
My guess is that problem is here:
https://github.com/dlang/phobos/blob/master/std/array.d#L2884

As this constructor is called when appender is used with null arr parameter.
So I guess that in CTFE _data is set to the same struct pointer?

--


More information about the Digitalmars-d-bugs mailing list