[Issue 3031] scoped static var conflicts while linking
https://issues.dlang.org/show_bug.cgi?id=3031 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Depends on|14831 | --
[Issue 3031] scoped static var conflicts while linking
https://issues.dlang.org/show_bug.cgi?id=3031 Mathias LANG pro.mathias.l...@gmail.com changed: What|Removed |Added Depends on|14381 |14831 --
[Issue 3031] scoped static var conflicts while linking
https://issues.dlang.org/show_bug.cgi?id=3031 Mathias LANG pro.mathias.l...@gmail.com changed: What|Removed |Added CC||pro.mathias.l...@gmail.com Depends on||14381 --- Comment #9 from Mathias LANG pro.mathias.l...@gmail.com --- Nowadays it gives the following error: test.d(14): Error: declaration test.func.j is already defined in another scope in func Since https://issues.dlang.org/show_bug.cgi?id=11720 was 'fixed'. I'll make it depend on https://issues.dlang.org/show_bug.cgi?id=14831, because the issue doesn't explicitly say which fix was expected. There's also a 20$ bounty on this, so if you guys feel the error message fixes it, feel free to send Kenji (https://github.com/D-Programming-Language/dmd/pull/2947) his reward ;) --
[Issue 3031] scoped static var conflicts while linking
https://issues.dlang.org/show_bug.cgi?id=3031 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|D1 D2 |D2 --
[Issue 3031] scoped static var conflicts while linking
https://d.puremagic.com/issues/show_bug.cgi?id=3031 --- Comment #8 from Martin Nowak c...@dawg.eu 2013-12-31 08:59:38 PST --- You could probably obtain a unique id for each anonymous scope. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3031] scoped static var conflicts while linking
https://d.puremagic.com/issues/show_bug.cgi?id=3031 --- Comment #7 from yebblies yebbl...@gmail.com 2013-11-22 19:13:50 EST --- (In reply to comment #6) I just got bit by this. Any new thoughts? It's not too hard to fix, since static variables don't really need unique mangled names. It's also not terribly high-priority, with all the wrong-code and accepts-invalid bugs that are open. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3031] scoped static var conflicts while linking
https://d.puremagic.com/issues/show_bug.cgi?id=3031 Jerry Quinn jlqu...@optonline.net changed: What|Removed |Added CC||jlqu...@optonline.net --- Comment #6 from Jerry Quinn jlqu...@optonline.net 2013-11-21 22:18:21 PST --- I just got bit by this. Any new thoughts? -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3031] scoped static var conflicts while linking
http://d.puremagic.com/issues/show_bug.cgi?id=3031 yebblies yebbl...@gmail.com changed: What|Removed |Added Keywords|patch, wrong-code |link-failure CC||yebbl...@gmail.com Platform|x86 |All Version|2.028 |D1 D2 --- Comment #5 from yebblies yebbl...@gmail.com 2012-07-08 22:15:27 EST --- Issue 5655 is the same sort of thing for lambdas. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3031] scoped static var conflicts while linking
http://d.puremagic.com/issues/show_bug.cgi?id=3031 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added CC||bugzi...@digitalmars.com --- Comment #4 from Walter Bright bugzi...@digitalmars.com 2012-02-18 13:37:50 PST --- Pull request and more commentary: https://github.com/D-Programming-Language/dmd/pull/721 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3031] scoped static var conflicts while linking
http://d.puremagic.com/issues/show_bug.cgi?id=3031 Lukasz Wrzosek luk.wrzo...@gmail.com changed: What|Removed |Added Attachment #817 is|0 |1 obsolete|| --- Comment #3 from Lukasz Wrzosek luk.wrzo...@gmail.com 2010-11-18 15:08:29 PST --- Created an attachment (id=819) Once again fix added and marked (patch) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3031] scoped static var conflicts while linking
http://d.puremagic.com/issues/show_bug.cgi?id=3031 --- Comment #2 from Lukasz Wrzosek luk.wrzo...@gmail.com 2010-11-17 12:12:50 PST --- Created an attachment (id=817) Fix for this bug. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3031] scoped static var conflicts while linking
http://d.puremagic.com/issues/show_bug.cgi?id=3031 Peter Alexander peter.alexander...@gmail.com changed: What|Removed |Added CC||peter.alexander...@gmail.co ||m OS/Version|Windows |All --- Comment #1 from Peter Alexander peter.alexander...@gmail.com 2010-10-23 12:39:50 PDT --- Simpler test case: void main() { { static int foo; } { static int foo; } } $ rdmd test.d ld: duplicate symbol _D4test4mainFZv3fooi in /tmp/.rdmd/rdmd-test.d-801BCEFE1CAD8F2472CC2713A3BF5714/test.d.o and /tmp/.rdmd/rdmd-test.d-801BCEFE1CAD8F2472CC2713A3BF5714/test.d.o collect2: ld returned 1 exit status Unfortunately I'm not sure whether this is supposed to be an error or not. Obviously D doesn't consider scope for the mangled names of static local variables, but if this is meant to be an error then it should be a compiler error, not linker error. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---