[Issue 5093] improve error for importing std.c.windows.windows
Don
nospam at nospam.com
Mon Nov 15 12:49:05 PST 2010
d-bugmail at puremagic.com wrote:
> http://d.puremagic.com/issues/show_bug.cgi?id=5093
>
>
>
> --- Comment #3 from simon <s.d.hammett at googlemail.com> 2010-11-15 11:03:49 PST ---
> Created an attachment (id=812)
> PATCH against rev 755: implement a module import backtrace for static assert
>
> Implements a module import back-trace for static asserts.
>
> This ought to be implemented for non-static asserts as well,
> but that probably involves mucking about in the back end
> and I can't be bothered diving into that at the mo.
>
Cool! In cases where it's imported from inside a static if, this is
fantastic.
Ideally, it would only do the module trace starting from the last
instantiated template. (Which would mean that in many cases, it wouldn't
appear at all). I think this should be applied to all template
instantiation back traces.
More information about the Digitalmars-d-bugs
mailing list