[Issue 16689] New: Errors in instantiated mixin templates should show instantiation point
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Nov 15 07:07:07 PST 2016
https://issues.dlang.org/show_bug.cgi?id=16689
Issue ID: 16689
Summary: Errors in instantiated mixin templates should show
instantiation point
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Keywords: diagnostic
Severity: enhancement
Priority: P5
Component: dmd
Assignee: nobody at puremagic.com
Reporter: thecybershadow at gmail.com
When an error occurs in an instantiated template, DMD will show where the
template was instantiated (in addition to the location of the error itself).
This does not happen for mixin templates, i.e.:
//////////// test.d ////////////
mixin template Foo()
{
static assert(false, "foo");
}
mixin Foo!();
////////////////////////////////
$ dmd -o- test.d
test.d(3): Error: static assert "foo"
DMD should also mention line 6, where the mixin template was instantiated.
--
More information about the Digitalmars-d-bugs
mailing list