digitalmars.D.bugs - [Issue 7751] New: [ICE] From auto and forward reference
- d-bugmail puremagic.com (51/51) Mar 22 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7751
- d-bugmail puremagic.com (14/14) Mar 23 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7751
- d-bugmail puremagic.com (11/11) Mar 25 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7751
- d-bugmail puremagic.com (9/9) Mar 29 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7751
- d-bugmail puremagic.com (10/10) Mar 29 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7751
- d-bugmail puremagic.com (9/9) Mar 29 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7751
http://d.puremagic.com/issues/show_bug.cgi?id=7751 Summary: [ICE] From auto and forward reference Product: D Version: unspecified Platform: x86 OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: bearophile_hugs eml.cc --- Comment #0 from bearophile_hugs eml.cc 2012-03-22 05:17:25 PDT --- This is wrong D2 code because Foo has no constructor: class Foo(T) { T x; Foo y; } auto foo(T)(T x, Foo!T y=null) { return new Foo!T(x, y); } void bar(U)(U foo, U[] spam=[]) { spam ~= []; } void main() { bar(foo(0)); } DMD 2.059head gives: test.d(6): Error: no constructor for Foo test.d(12): Error: template instance test.foo!(int) error instantiating Followed by a crash. If I remove the template of Foo: class Foo { int x; Foo y; } auto foo(int x, Foo y=null) { return new Foo(x, y); } void bar(U)(U foo, U[] spam=[]) { spam ~= []; } void main() { bar(foo(0)); } DMD gives this and no crash: test.d(6): Error: no constructor for Foo test.d(12): Error: forward reference to foo -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 22 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7751 Kenji Hara <k.hara.pg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice, pull Platform|x86 |All Version|unspecified |D2 OS/Version|Windows |All Severity|normal |major --- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2012-03-23 23:06:10 PDT --- https://github.com/D-Programming-Language/dmd/pull/828 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 23 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7751 Kenji Hara <k.hara.pg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[ICE] From auto and forward |[ICE] (Regression |reference |2.059head) From auto and | |forward reference Severity|major |regression -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 25 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7751 --- Comment #4 from github-bugzilla puremagic.com 2012-03-29 12:12:47 PDT --- Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/cd7d2fc3843ffa96d6c8413ba1dbc5b90c7b05de Merge pull request #828 from 9rnsr/fix7751 Issue 7751 - [ICE] From auto and forward reference -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 29 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7751 Walter Bright <bugzilla digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla digitalmars.com Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 29 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7751 --- Comment #5 from github-bugzilla puremagic.com 2012-03-29 15:20:15 PDT --- Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/a4d1e283f85e4258e31e05e31fcc948199b69239 Merge pull request #848 from donc/regression7751 Fix issue 7751, improve error handling -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 29 2012