digitalmars.D.bugs - [Issue 8186] New: Formatting class object has an alias this to int* field is broken.
- d-bugmail puremagic.com (33/33) Jun 02 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8186
- d-bugmail puremagic.com (10/10) Jun 02 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8186
- d-bugmail puremagic.com (12/12) Jun 02 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8186
- d-bugmail puremagic.com (9/9) Jun 02 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8186
http://d.puremagic.com/issues/show_bug.cgi?id=8186 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 AssignedTo: nobody puremagic.com ReportedBy: k.hara.pg gmail.com From github: https://github.com/D-Programming-Language/phobos/pull/575#issuecomment-6075942 import std.stdio; class B { int*a; 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 (isPointer!(T)) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 02 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8186 Kenji Hara <k.hara.pg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull https://github.com/D-Programming-Language/phobos/pull/616 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 02 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8186 Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/064a2c50156faeffc3d20980198eea53d50e0b76 fix Issue 8186 - Formatting class object has an alias this to int* field is broken. https://github.com/D-Programming-Language/phobos/commit/f30dc4d69d849a6ce129a84ad20bf0b277d8eb81 Issue 8186 - Formatting class object has an alias this to int* field is broken. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 02 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8186 Kenji Hara <k.hara.pg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 02 2012