digitalmars.D.bugs - [Issue 16689] New: Errors in instantiated mixin templates should
- via Digitalmars-d-bugs (29/29) Nov 15 2016 https://issues.dlang.org/show_bug.cgi?id=16689
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 puremagic.com Reporter: thecybershadow 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. --
Nov 15 2016