Thread overview
[Issue 7131] [tdpl] Hijacking detected where it doesn't exist
Dec 22, 2011
dawg@dawgfoto.de
Jan 17, 2012
dawg@dawgfoto.de
Jan 18, 2012
dawg@dawgfoto.de
Jan 20, 2012
dawg@dawgfoto.de
Jan 20, 2012
dawg@dawgfoto.de
December 22, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=7131


dawg@dawgfoto.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dawg@dawgfoto.de


--- Comment #1 from dawg@dawgfoto.de 2011-12-22 12:34:12 PST ---
Shouldn't this rather error when importing std.array.
I thought you must declare an overloadset to allow ADL.

alias std.regex.split split;
alias std.array.split split;

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 17, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7131



--- Comment #2 from dawg@dawgfoto.de 2012-01-16 18:10:21 PST ---
Can you elaborate on why this should work.
There is a related bug w.r.t. buggy private overload resolution.
http://d.puremagic.com/issues/show_bug.cgi?id=5422

But here both functions/symbols imported are public.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 18, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7131



--- Comment #3 from dawg@dawgfoto.de 2012-01-18 11:27:48 PST ---
OK, std.string and std.regex should implicitly form
two overload sets. As the resolved set in std.string
is empty std.regex.split should be called.

http://www.d-programming-language.org/hijack.html

I will take a look at this when I find some time.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 20, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7131


dawg@dawgfoto.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|nobody@puremagic.com        |dawg@dawgfoto.de


--- Comment #4 from dawg@dawgfoto.de 2012-01-20 07:39:53 PST ---
Doesn't fail any longer, but I'll still have a look what went wrong/resolved it.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 20, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7131


dawg@dawgfoto.de changed:

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


--- Comment #5 from dawg@dawgfoto.de 2012-01-20 09:38:30 PST ---
Selective imports used to be added to the importing
module as an alias. The compiler does not generate
an overload set for aliased symbols, thus failed to
resolve this.

Fixed by: https://github.com/D-Programming-Language/dmd/commit/dc5ab5ca6e00975cb836dabb00fa602cb7688ae2

The fix is not complete as it misses cases with nested overload sets and aliases but I'll open a separate bug report for that.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------