www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Can i plz has some template instantiation error stack traces?

reply "Bill Baxter" <wbaxter gmail.com> writes:
kthx bye.
--bb
Dec 12 2008
next sibling parent reply "Nick Sabalausky" <a a.a> writes:
"Bill Baxter" <wbaxter gmail.com> wrote in message 
news:mailman.162.1229113882.22690.digitalmars-d puremagic.com...
 kthx bye.
 --bb
I think we need a lolcat pic to go along with this. :)
Dec 12 2008
parent "Bill Baxter" <wbaxter gmail.com> writes:
Seriously though, I think this is a big hole in the DMD support of templates.

It's very annoying to get a compiler message that consists of nothing but:

" error: ATemplateFunction: int does not have a .length property"

Where ATemplateFunction is something like

void ATemplateFunction(ArrayT)(ArrayT  x) {
     auto n = x.length;
     ....
}

Great so I know somewhere in my source code I called ATemplateFunction
with the wrong kind of argument.  The compiler knows where it was that
I made the call, but it just doesn't care to enlighten me.  Very
frustrating.

--bb

On Sat, Dec 13, 2008 at 7:07 AM, Nick Sabalausky <a a.a> wrote:
 "Bill Baxter" <wbaxter gmail.com> wrote in message
 news:mailman.162.1229113882.22690.digitalmars-d puremagic.com...
 kthx bye.
 --bb
I think we need a lolcat pic to go along with this. :)
Dec 12 2008
prev sibling next sibling parent Ary Borenszweig <ary esperanto.org.ar> writes:
Bill Baxter escribió:
 kthx bye.
 --bb
You can debug DMD's frontend. Or Descent. :-P (and find bugs in the port, yay!)
Dec 12 2008
prev sibling parent reply Robert Fraser <fraserofthenight gmail.com> writes:
Bill Baxter wrote:
 kthx bye.
 --bb
LDC can haz.
Dec 12 2008
parent reply "Bill Baxter" <wbaxter gmail.com> writes:
On Sat, Dec 13, 2008 at 12:44 PM, Robert Fraser
<fraserofthenight gmail.com> wrote:
 Bill Baxter wrote:
 kthx bye.
 --bb
LDC can haz.
orly? As in haz them now? or can potentially haz at some point in the future if someone decides to do it? --bb
Dec 12 2008
parent reply Christian Kamm <kamm-incasoftware removethis.de> writes:
 LDC can haz.
orly? As in haz them now? or can potentially haz at some point in the future if someone decides to do it?
Can haz now. Currently looking like so templerror.d(9): Error: identifier 'wrong' is not defined templerror.d(12): Error: template instance templerror.bar!(int[][][]) error instantiating instantiatied in templerror.d(12): bar!(int[][]) instantiatied in templerror.d(3): bar!(int[]) instantiatied in templerror.d(16): foo!(int) and triggered by errors and static asserts. We had a brief slide about them in our Tango Conference talk. I hope it'll be up eventually... :)
Dec 12 2008
parent reply "Bill Baxter" <wbaxter gmail.com> writes:
On Sat, Dec 13, 2008 at 4:53 PM, Christian Kamm
<kamm-incasoftware removethis.de> wrote:
 LDC can haz.
orly? As in haz them now? or can potentially haz at some point in the future if someone decides to do it?
Can haz now. Currently looking like so templerror.d(9): Error: identifier 'wrong' is not defined templerror.d(12): Error: template instance templerror.bar!(int[][][]) error instantiating instantiatied in templerror.d(12): bar!(int[][]) instantiatied in templerror.d(3): bar!(int[]) instantiatied in templerror.d(16): foo!(int) and triggered by errors and static asserts. We had a brief slide about them in our Tango Conference talk. I hope it'll be up eventually... :)
Looks great. Is there a DMD patch for that somewhere in bugzilla? --bb
Dec 13 2008
parent reply Christian Kamm <kamm-incasoftware removethis.de> writes:
Bill Baxter wrote:
 Looks great.
 Is there a DMD patch for that somewhere in bugzilla?
I sent it directly to Walter a few months ago, but I'll also attach it to the enhancement request you just opened.
Dec 13 2008
parent "Bill Baxter" <wbaxter gmail.com> writes:
On Sat, Dec 13, 2008 at 5:07 PM, Christian Kamm
<kamm-incasoftware removethis.de> wrote:
 Bill Baxter wrote:
 Looks great.
 Is there a DMD patch for that somewhere in bugzilla?
I sent it directly to Walter a few months ago, but I'll also attach it to the enhancement request you just opened.
Excellent! Thanks. Here's hoping Walter applies the patch. --bb
Dec 13 2008