[Issue 10789] Struct destructor erroneously called
http://d.puremagic.com/issues/show_bug.cgi?id=10789 --- Comment #1 from S�nke Ludwig slud...@outerproduct.org 2013-08-09 22:55:04 PDT --- Created an attachment (id=1241) Reproduction case -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 10789] Struct destructor erroneously called
http://d.puremagic.com/issues/show_bug.cgi?id=10789 Maxim Fomin ma...@maxim-fomin.ru changed: What|Removed |Added CC||ma...@maxim-fomin.ru --- Comment #2 from Maxim Fomin ma...@maxim-fomin.ru 2013-08-10 00:44:27 PDT --- Reduced: extern(C) int printf(const char*, ...); struct S { static int count; this(int ignoreme) { int oldcount = count; printf(%X ctor %d=%d\n, this, oldcount, ++count); } ~this() { int oldcount = count; printf(%X dtor %d=%d\n, this, oldcount, --count); } this(this) { int oldcount = count; printf(%X postblit %d=%d\n, this, oldcount, ++count); } } S fun() { S s1 = S(42), s2 = S(24); if (true) return s1; else return s2; } void main() { S s = fun(); } In case of if(true) compiler does not insert postblit call. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 10711] shared phobos library should not depend on _Dmain
http://d.puremagic.com/issues/show_bug.cgi?id=10711 --- Comment #2 from Walter Bright bugzi...@digitalmars.com 2013-08-10 01:10:30 PDT --- https://github.com/D-Programming-Language/druntime/pull/563 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 10729] Some exception symbols undefined
http://d.puremagic.com/issues/show_bug.cgi?id=10729 --- Comment #2 from Andre Tampubolon an...@lc.vlsm.org 2013-08-10 02:57:21 PDT --- You would need rebuild Phobos library, because some Exception class ctors are now annotated with pure and @safe attributes in git head. OK, I just fetch the latest dmd, druntime phobos source code. After rebuilding all of them, I tried to compile the same code: C:\Users\CSL-NB-064\Codes\Ddmd hello.d OPTLINK (R) for Win32 Release 8.00.5 Copyright (C) Digital Mars 1989-2009 All rights reserved. http://www.digitalmars.com/ctg/optlink.html hello.obj(hello) Error 42: Symbol Undefined _D3std4conv21ConvOverflowException6__ctorMFNaNbNfAyaAyakZC3std4conv21ConvOverflowException hello.obj(hello) Error 42: Symbol Undefined _D3std4conv13ConvException6__ctorMFNaNbNfAyaAyakZC3std4conv13ConvException hello.obj(hello) Error 42: Symbol Undefined _D3std6format15FormatException6__ctorMFNaNbNfAyaAyakC6object9ThrowableZC3std6format15FormatE xception hello.obj(hello) Error 42: Symbol Undefined _D3std3utf12UTFException6__ctorMFNaNfAyakAyakC6object9ThrowableZC3std3utf12UTFException hello.obj(hello) Error 42: Symbol Undefined _D3std3uni42__T11Uint24ArrayTS3std3uni13ReallocPolicyZ11Uint24Array5emptyMxFNaNbNdNeZb hello.obj(hello) Error 42: Symbol Undefined _D3std3uni42__T11Uint24ArrayTS3std3uni13ReallocPolicyZ11Uint24Array6__dtorMFNbNeZv hello.obj(hello) Error 42: Symbol Undefined _D3std3uni36__T11Uint24ArrayTS3std3uni8GcPolicyZ11Uint24Array5emptyMxFNaNbNdNeZb hello.obj(hello) Error 42: Symbol Undefined _D3std3uni36__T11Uint24ArrayTS3std3uni8GcPolicyZ11Uint24Array6__dtorMFNaNbNeZv --- errorlevel 8 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 9247] Compiler accepts opaque struct returned by value from function pointer declaration.
http://d.puremagic.com/issues/show_bug.cgi?id=9247 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 9247] Compiler accepts opaque struct returned by value from function pointer declaration.
http://d.puremagic.com/issues/show_bug.cgi?id=9247 --- Comment #2 from github-bugzi...@puremagic.com 2013-08-10 05:24:47 PDT --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/1206155104c13d961fd2371932fe3b2db69867bb fix issue 9247 - Compiler accepts opaque struct returned by value from function pointer declaration. https://github.com/D-Programming-Language/dmd/commit/64546fcd827f6e4ce0a8237e2e6f926feee9fa8b Merge pull request #2458 from hpohl/9247 fix issue 9247 - Compiler accepts opaque struct returned by value from function pointer declaration. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 10788] Regression: forward reference of enum member E from another module.
http://d.puremagic.com/issues/show_bug.cgi?id=10788 Henning Pohl henn...@still-hidden.de changed: What|Removed |Added Keywords||pull CC||henn...@still-hidden.de --- Comment #1 from Henning Pohl henn...@still-hidden.de 2013-08-10 05:39:24 PDT --- https://github.com/D-Programming-Language/dmd/pull/2462 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 10779] cartesianProduct leads to heavy code bloat
http://d.puremagic.com/issues/show_bug.cgi?id=10779 --- Comment #2 from hst...@quickfur.ath.cx 2013-08-10 09:40:38 PDT --- You are right, cartesianProduct uses a lot of templates internally. It's worse with cartesianProduct of 2 arguments, it uses an exponential number of templates. I'll have to rewrite it from scratch to not use existing range templates. :-( So much for dogfooding... -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 10779] cartesianProduct leads to heavy code bloat
http://d.puremagic.com/issues/show_bug.cgi?id=10779 --- Comment #4 from hst...@quickfur.ath.cx 2013-08-10 13:30:42 PDT --- Sigh, let's see if we can get the link: issue #10693 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 10779] cartesianProduct leads to heavy code bloat
http://d.puremagic.com/issues/show_bug.cgi?id=10779 --- Comment #3 from hst...@quickfur.ath.cx 2013-08-10 13:30:04 PDT --- Related: #10693 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 10693] cartesianProduct with over 7 ranges causes segfault at compile time
http://d.puremagic.com/issues/show_bug.cgi?id=10693 --- Comment #6 from hst...@quickfur.ath.cx 2013-08-10 13:32:20 PDT --- See also issue #10779 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 10693] cartesianProduct with over 7 ranges causes segfault at compile time
http://d.puremagic.com/issues/show_bug.cgi?id=10693 --- Comment #5 from hst...@quickfur.ath.cx 2013-08-10 13:31:47 PDT --- Looks like cartesianProduct of 2 arguments needs to be reimplemented, as it's using an exponential number of templates, which is completely non-scalable. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 10790] New: Cannot use format in pure functions
http://d.puremagic.com/issues/show_bug.cgi?id=10790 Summary: Cannot use format in pure functions Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: temta...@gmail.com --- Comment #0 from Temtaime temta...@gmail.com 2013-08-10 15:55:54 PDT --- pure int foo() { mixin(format(`return 1;`)); } Error: pure function 'foo' cannot call impure function 'format' -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 10790] Cannot use format in pure functions
http://d.puremagic.com/issues/show_bug.cgi?id=10790 Andrej Mitrovic andrej.mitrov...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED CC||andrej.mitrov...@gmail.com Resolution||INVALID --- Comment #1 from Andrej Mitrovic andrej.mitrov...@gmail.com 2013-08-10 15:57:23 PDT --- Already fixed in git-head with another bug report. Someone should mark this as a dupe of another report, I can't remember which one it is. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---