Summary: Formatting class object has an alias this to int*
                    field is broken.
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: Phobos

--- Comment #0 from Kenji Hara <> 2012-06-02 02:59:18 PDT ---
>From github:

import std.stdio;
class B
  this(){ a = new int; }
  alias a this;
void main(){ writeln(B.init); }

dmd/phobos/std/format.d(2577): Error: template std.format.formatValue matches
more than one template declaration,
dmd/phobos/std/format.d(2151):formatValue(Writer,T,Char) if (is(T == class) &&
!is(T == enum)) and dmd/phobos/std/format.d(2476):formatValue(Writer,T,Char) if

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to