digitalmars.D.bugs - [Issue 8990] New: Forward reference error on three structs
- d-bugmail puremagic.com (43/43) Nov 09 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8990
- d-bugmail puremagic.com (11/13) Nov 09 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8990
- d-bugmail puremagic.com (7/12) Nov 09 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8990
- d-bugmail puremagic.com (6/6) Nov 12 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8990
- d-bugmail puremagic.com (10/10) Nov 13 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8990
- d-bugmail puremagic.com (8/8) Nov 13 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8990
- d-bugmail puremagic.com (12/12) Nov 13 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8990
- d-bugmail puremagic.com (9/9) Nov 13 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8990
http://d.puremagic.com/issues/show_bug.cgi?id=8990 Summary: Forward reference error on three structs Product: D Version: unspecified Platform: All OS/Version: All Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: cbkbbejeap mailinator.com Blocks: 340 --- Comment #0 from Nick Sabalausky <cbkbbejeap mailinator.com> 2012-11-09 22:05:34 PST --- From digitalmars.D.learn: http://forum.dlang.org/thread/mzssmbjertutrdgmrlyw forum.dlang.org struct A(T) { T t; } struct B(T) { A!(T)* a; } struct C { B!(C)* b; } Result: test.d(2): Error: struct test.A!(C).A has forward references test.d(11): Error: template instance test.B!(C) error instantiating Workaround: Inside the definition of "struct B(T)", move "A!(T)" to an optional template parameter: struct B(T, U=A!(T)) { U* a; } This *might* be related to #6969, but I'm not sure. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 09 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8990 Rob T <alanb ucora.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |alanb ucora.com --- Comment #1 from Rob T <alanb ucora.com> 2012-11-09 23:06:12 PST ---This *might* be related to #6969, but I'm not sure.Also appears to be related, if not identical, to this one http://d.puremagic.com/issues/show_bug.cgi?id=3834 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 09 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8990 --- Comment #2 from Rob T <alanb ucora.com> 2012-11-09 23:12:29 PST --- (In reply to comment #1)Scratch that, #3834 is not related to this one at all. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------This *might* be related to #6969, but I'm not sure.Also appears to be related, if not identical, to this one http://d.puremagic.com/issues/show_bug.cgi?id=3834
Nov 09 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8990 --- Comment #3 from Don <clugdbug yahoo.com.au> 2012-11-12 07:07:59 PST --- Yes, looks identical to bug 6969 to me. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 12 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8990 Kenji Hara <k.hara.pg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull --- Comment #4 from Kenji Hara <k.hara.pg gmail.com> 2012-11-13 04:19:13 PST --- https://github.com/D-Programming-Language/dmd/pull/1280 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 13 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8990 --- Comment #5 from Nick Sabalausky <cbkbbejeap mailinator.com> 2012-11-13 08:31:51 PST --- Don: FWIW, The reason I wasn't sure if this was the same was because if you take the #6969 test case and replace all the "class" with "struct", it works. But, of course, Hara's pull apparently fixes both, so all the better :) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 13 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8990 --- Comment #6 from github-bugzilla puremagic.com 2012-11-13 12:27:42 PST --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/821fddfcd8188cf28ce379cdcf537fb2931a1d3d fix Issue 8990 - Forward reference error on three structs https://github.com/D-Programming-Language/dmd/commit/c34c5fb0e67f7c48bb683ef409378fde6db33088 Merge pull request #1280 from 9rnsr/fix8990 Issue 6969 & 8990 - Forward reference error between three template instantiations -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 13 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8990 Walter Bright <bugzilla digitalmars.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: -------
Nov 13 2012