www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12449] New: Undefined format in std.algorithm.max

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: bearophile_hugs eml.cc


--- Comment #0 from bearophile_hugs 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: -------
Mar 24 2014
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12449


monarchdodra gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |monarchdodra gmail.com


--- Comment #1 from monarchdodra gmail.com 2014-03-24 06:43:50 PDT ---
https://github.com/D-Programming-Language/phobos/pull/2047

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 24 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12449



--- Comment #2 from github-bugzilla puremagic.com 2014-03-25 03:23:48 PDT ---
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

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 25 2014
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12449


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrej.mitrovich gmail.com
           Platform|x86                         |All
         Resolution|                            |FIXED
         OS/Version|Windows                     |All


--- Comment #2 from github-bugzilla puremagic.com 2014-03-25 11:23:48 CET ---
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

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 25 2014