Jump to page: 1 2
Thread overview
[Issue 2789] Functions overloads are not checked for conflicts
Jan 26, 2015
yebblies
Feb 08, 2015
Kenji Hara
Feb 08, 2015
Kenji Hara
Feb 08, 2015
Kenji Hara
Jun 14, 2015
Rob T
Jul 01, 2017
Vladimir Panteleev
Feb 08, 2018
Seb
Mar 01, 2018
Seb
May 15, 2020
Witold Baryluk
Aug 03, 2020
Iain Buclaw
Oct 26, 2023
Witold Baryluk
Oct 26, 2023
Witold Baryluk
Oct 26, 2023
Witold Baryluk
Oct 26, 2023
Basile-z
January 26, 2015
https://issues.dlang.org/show_bug.cgi?id=2789

yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |alphaglosined@gmail.com

--- Comment #10 from yebblies <yebblies@gmail.com> ---
*** Issue 13896 has been marked as a duplicate of this issue. ***

--
February 08, 2015
https://issues.dlang.org/show_bug.cgi?id=2789

Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |14147

--
February 08, 2015
https://issues.dlang.org/show_bug.cgi?id=2789

Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|14147                       |

--- Comment #11 from Kenji Hara <k.hara.pg@gmail.com> ---
A new pull request: https://github.com/D-Programming-Language/dmd/pull/4396

--
February 08, 2015
https://issues.dlang.org/show_bug.cgi?id=2789

Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |14147

--
February 16, 2015
https://issues.dlang.org/show_bug.cgi?id=2789

--- Comment #12 from github-bugzilla@puremagic.com ---
Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/41f243a6c29f00ab4cdeb69d418796ed00fa0c51 Supplemental fix for issue 2789

https://github.com/D-Programming-Language/phobos/commit/122f7ca5ecfbb58234ae0dac3113d420b64f62a5 Merge pull request #2968 from 9rnsr/fix2789

Supplemental fix for issue 2789

--
February 19, 2015
https://issues.dlang.org/show_bug.cgi?id=2789

--- Comment #13 from github-bugzilla@puremagic.com ---
Commits pushed to 2.067 at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/41f243a6c29f00ab4cdeb69d418796ed00fa0c51 Supplemental fix for issue 2789

https://github.com/D-Programming-Language/phobos/commit/122f7ca5ecfbb58234ae0dac3113d420b64f62a5 Merge pull request #2968 from 9rnsr/fix2789

--
February 21, 2015
https://issues.dlang.org/show_bug.cgi?id=2789

--- Comment #14 from github-bugzilla@puremagic.com ---
Commits pushed to https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/41f243a6c29f00ab4cdeb69d418796ed00fa0c51 Supplemental fix for issue 2789

https://github.com/D-Programming-Language/phobos/commit/122f7ca5ecfbb58234ae0dac3113d420b64f62a5 Merge pull request #2968 from 9rnsr/fix2789

--
June 14, 2015
https://issues.dlang.org/show_bug.cgi?id=2789

Rob T <alanb@ucora.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |alanb@ucora.com

--- Comment #15 from Rob T <alanb@ucora.com> ---
This bug report may be related or a duplicate https://issues.dlang.org/show_bug.cgi?id=13283

The problem persists in dmd v2.067.1

It is particularly nasty since even the linker won't catch it in some cases.

For example:

main_lib.d
---------------------------
module main_lib;
import std.stdio;
alias t_TaskFunction = void function();

// duplicate overloads that should not compile

void Task(){
   writeln("A");
}

void Task(){
   writeln("B");
}


main.d
---------------------------
import main_lib;

int main()
{
   t_TaskFunction TaskFunction = &Task; // ???
   TaskFunction();
   return 0;
}

$dmd main_lib.d -lib -O -oflibmain_lib.a
$dmd main2.d -O -L-L./ -L-lmain_lib -ofmain
$./main

Output is "A" on my system.

--
July 01, 2017
https://issues.dlang.org/show_bug.cgi?id=2789

Vladimir Panteleev <dlang-bugzilla@thecybershadow.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=12694

--
February 08, 2018
https://issues.dlang.org/show_bug.cgi?id=2789

Seb <greensunny12@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |greensunny12@gmail.com
         Resolution|---                         |FIXED

--- Comment #16 from Seb <greensunny12@gmail.com> ---
Fixed by https://github.com/dlang/dmd/pull/7577

--
« First   ‹ Prev
1 2