www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16671] New: std.variant visiting functions should pass file,

https://issues.dlang.org/show_bug.cgi?id=16671

          Issue ID: 16671
           Summary: std.variant visiting functions should pass file, line
                    to VariantException
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: nick geany.org

When Algebraic().visit (or tryVisit) throws an exception, the file and line
number are always internal to std.variant. It should use the caller's __FILE__,
__LINE__.

--
Nov 08 2016