[Issue 22050] -betterC: TypeInfo in speculative template instantiation aborts compilation without error message
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jan 15 07:52:03 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=22050
Walter Bright <bugzilla at digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |bugzilla at digitalmars.com
Resolution|--- |WORKSFORME
--- Comment #2 from Walter Bright <bugzilla at digitalmars.com> ---
The program:
import std.algorithm, std.range, std.conv;
void foo() {
assert(2 == iota(2).map!(n => to!string(n)).length);
}
extern (C) void main() { foo(); }
now compiles and runs successfully with -betterC on master.
--
More information about the Digitalmars-d-bugs
mailing list