Bug 12449 – Undefined format in std.algorithm.max

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-03-24T05:30:00Z
Last change time
2014-03-25T03:24:13Z
Assigned to
nobody
Creator
bearophile_hugs

Comments

Comment #0 by bearophile_hugs — 2014-03-24T05:30:25Z
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)
Comment #1 by monarchdodra — 2014-03-24T06:43:50Z
Comment #2 by github-bugzilla — 2014-03-25T03:23:48Z
Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/837027692463c06052874ff6182724dd4c8727a9 Fix Issue 12449 Undefined format in std.algorithm.max https://github.com/D-Programming-Language/phobos/commit/2a1df9fc0edad8d951f9cd69cbe437b92cdebfa0 Merge pull request #2047 from monarchdodra/12449 Fix Issue 12449 - Undefined format in std.algorithm.max