www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16689] New: Errors in instantiated mixin templates should


          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