Thread overview
[Issue 13175] [D1] ICE on conflicting overloads in presense of default __FILE__/__LINE__
Jul 21, 2014
Walter Bright
Jul 21, 2014
Dicebot
Jul 22, 2014
Dicebot
Jul 24, 2014
Dicebot
July 21, 2014
https://issues.dlang.org/show_bug.cgi?id=13175

Walter Bright <bugzilla@digitalmars.com> changed:

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

--- Comment #1 from Walter Bright <bugzilla@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__)

--
July 21, 2014
https://issues.dlang.org/show_bug.cgi?id=13175

--- Comment #2 from Dicebot <public@dicebot.lv> ---
Hm, issue was reproduced using build from commit
73c30d1ddc0008c68a7796d5f1dbaa76e77ba841
I will try checking out most recent dmd-1.x HEAD tomorrow

--
July 22, 2014
https://issues.dlang.org/show_bug.cgi?id=13175

--- Comment #3 from Dicebot <public@dicebot.lv> ---
Yes, this works with more recent commits.

However I can't test dmd-1.x HEAD because this commit has broken it : eaef472a9e4ded15360a8a8de9c36b8b3cd07059

g++  -c -Wno-deprecated -Wstrict-aliasing -D__pascal= -fno-exceptions -O2
-Ibackend -Itk -Iroot -DMARS=1 -DDMDV1=1 -DTARGET_LINUX=1 -DDM_TARGET_CPU_X86=1
-Iroot e2ir.c
e2ir.c: In function ‘elem* setArray(elem*, elem*, Type*, elem*)’:
e2ir.c:609:14: error: ‘Tvector’ was not declared in this scope

--
July 24, 2014
https://issues.dlang.org/show_bug.cgi?id=13175

Dicebot <public@dicebot.lv> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Dicebot <public@dicebot.lv> ---
Works with 9135f17a8e91b4ff2a600380155529a855a8ce83

--