[Issue 12449] New: Undefined format in std.algorithm.max
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Mar 24 05:30:29 PDT 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12449
Summary: Undefined format in std.algorithm.max
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at eml.cc 2014-03-24 05:30:25 PDT ---
Localizing imports causes some troubles:
void main() {
import std.algorithm: max;
struct Foo {}
max(Foo(), Foo());
}
dmd 2.066alpha:
...\dmd2\src\phobos\std\algorithm.d(7136,13): Error: undefined identifier
format
...\dmd2\src\phobos\std\algorithm.d(7135,9): Error: static assert __error
test.d(4,8): instantiated from here: max!(Foo, Foo)
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list