[Issue 12315] std.array.array at compile-time too
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Jul 1 19:22:09 PDT 2017
https://issues.dlang.org/show_bug.cgi?id=12315
Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
CC| |dlang-bugzilla at thecybershad
| |ow.net
Resolution|--- |WORKSFORME
--- Comment #9 from Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> ---
(In reply to monarchdodra from comment #8)
> Reopening because I'm not sure it's worth filing something new, but
> `Appender` will also CTFE fail on the same types.
Can't reproduce this:
import std.array;
struct Foo1 {
int i;
}
struct Foo2 {
immutable int i;
}
T[] fun(T)()
{
auto a = appender!(T[]);
return a.data;
}
enum foo1 = fun!Foo1();
enum foo2 = fun!Foo2();
In any case, it should be filed as a separate bug.
--
More information about the Digitalmars-d-bugs
mailing list