Thread overview | ||||||
---|---|---|---|---|---|---|
|
January 07, 2007 [Issue 810] New: Cannot forward reference template | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=810 Summary: Cannot forward reference template Product: D Version: 1.00 Platform: PC OS/Version: Windows Status: NEW Severity: normal Priority: P3 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: deewiant@gmail.com OtherBugsDependingO 340 nThis: They don't get much shorter than this: Template!(int) stack; template Template(T) {} Flip the two lines and the code compiles. -- |
April 05, 2007 [Issue 810] Cannot forward reference template | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=810 ------- Comment #1 from thomas-dloop@kuehne.cn 2007-04-05 05:27 ------- Added to DStress as http://dstress.kuehne.cn/compile/f/forward_reference_18_C.d http://dstress.kuehne.cn/compile/f/forward_reference_18_D.d -- |
August 19, 2009 [Issue 810] Cannot forward reference template | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=810 Don <clugdbug@yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |clugdbug@yahoo.com.au Resolution| |FIXED --- Comment #2 from Don <clugdbug@yahoo.com.au> 2009-08-19 07:23:24 PDT --- This test case is faulty (as are the Dstress cases), it should be: Template!(int) stack; template Template(T) { alias int Template; } This failed in 1.041, but is working in 1.046 and 2.031. I bet this was fixed by bug#106 in 1.046. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
August 19, 2009 [Issue 810] Cannot forward reference template | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=810 --- Comment #3 from Matti Niemenmaa <matti.niemenmaa+dbugzilla@iki.fi> 2009-08-19 09:49:00 PDT --- Right you are; I checked and indeed, flipping the two lines doesn't make the code acceptable even with DMD 1.00. My bad, I presumably changed it from "class" to "template" at the last minute. Confirmed that this is indeed fixed with 1.046: it didn't work in 1.045. Happy days! My code is riddled with "waiting on #810"-type comments. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation