[Issue 18472] New: betterC: cannot use format at compile time.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Feb 20 06:51:00 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18472
Issue ID: 18472
Summary: betterC: cannot use format at compile time.
Product: D
Version: D2
Hardware: x86
OS: All
Status: NEW
Severity: regression
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: iamthewilsonator at hotmail.com
import std.format;
import std.stdio;
void main()
{
enum s = "%1$s,%2$s".format("foo","bar");
writeln(s);
}
fails with
/dlang/dmd-nightly/linux/bin64/../../src/phobos/std/array.d(2889): Error:
TypeInfo cannot be used with -betterC
due to the use of Appender
at line 2889 is
`private struct Data`
This did use to work as I have always compiled Dcompute with -betterC, however
upgrading to LDC 1.8.0b1 based on v2.078.2 (from LDC master in about December),
I hit #18101, and trying run.dlang.io to see how soon it would get fixed and
hit this.
--
More information about the Digitalmars-d-bugs
mailing list