https://issues.dlang.org/show_bug.cgi?id=15974
--- Comment #1 from Kenji Hara <[email protected]> --- I got a real minimized test case from incomplete sample code. // test.d string format(Args...)(string fmt, Args args) { return ""; } void loadDeviceFns() { enum allFns = ["vkCreateSampler"]; foreach (f;allFns) { mixin("%s".format(f)); } } $ dmd -o- test test.d(11): Error: variable f cannot be read at compile time test.d(11): called from here: format("%s", f) test.d(11): Error: argument to mixin must be a string, not (format("%s", f)) of type string --
