[Issue 13175] [D1] ICE on conflicting overloads in presense of default __FILE__/__LINE__

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Jul 21 12:10:38 PDT 2014


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

Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at digitalmars.com

--- Comment #1 from Walter Bright <bugzilla at digitalmars.com> ---
When I try it, I get:

C:\cbx\mars1>dmd foo
DMD v1.077 DEBUG
foo.d(14): Error: function foo.Test.opCall called with argument types:
        (char[3u])
matches both:
        foo.d(3): foo.Test.opCall(char[] msg, char[] file = __FILE__, long line
= cast(long)__LINE__)
and:
        foo.d(7): foo.Test.opCall(char[] file = __FILE__, long line =
cast(long)__LINE__)

--


More information about the Digitalmars-d-bugs mailing list