[Issue 7722] Refuse normal functions to be used as properties
http://d.puremagic.com/issues/show_bug.cgi?id=7722 --- Comment #7 from github-bugzi...@puremagic.com 2012-03-27 23:06:42 PDT --- Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/29fa5e260ff5a56ac4716aa67840e0d4fd175a69 Merge pull request #830 from 9rnsr/fix_ufcs Issue 7722 - Refuse normal functions to be used as properties -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 7766] (Full Closures) Chain of nested functions fails
http://d.puremagic.com/issues/show_bug.cgi?id=7766 Don clugd...@yahoo.com.au changed: What|Removed |Added Keywords||wrong-code Status|NEW |RESOLVED CC||clugd...@yahoo.com.au Resolution||DUPLICATE --- Comment #1 from Don clugd...@yahoo.com.au 2012-03-27 23:23:02 PDT --- Duplicate of bug 1841 - it's incorrect closure detection in nested functions. *** This issue has been marked as a duplicate of issue 1841 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 1841] Closure detection doesn't work when variable is used in a nested function
http://d.puremagic.com/issues/show_bug.cgi?id=1841 Don clugd...@yahoo.com.au changed: What|Removed |Added CC||xi...@live.com --- Comment #4 from Don clugd...@yahoo.com.au 2012-03-27 23:23:03 PDT --- *** Issue 7766 has been marked as a duplicate of this issue. *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 7750] while(true) loop with try/catch block causes segfault
http://d.puremagic.com/issues/show_bug.cgi?id=7750 Don clugd...@yahoo.com.au changed: What|Removed |Added CC||clugd...@yahoo.com.au --- Comment #2 from Don clugd...@yahoo.com.au 2012-03-27 23:33:22 PDT --- (In reply to comment #1) I can't seem to reproduce this problem with the latest git dmd (2.059 candidate) on Linux AMD64. Could it be a Mac-specific problem? Looks like it, based on the first location in the backtrace: misaligned_stack_error_entering_dyld_stub_binder The stack isn't getting aligned properly before the call to writeln. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 6660] Problem with core.cpuid on Windows7
http://d.puremagic.com/issues/show_bug.cgi?id=6660 Don clugd...@yahoo.com.au changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Comment #9 from Don clugd...@yahoo.com.au 2012-03-28 00:06:39 PDT --- Turns out to be caused by Windows Defender. Disabling it in the development directory solves the problem. Looks like a bug in Windows Defender to me. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 7788] __gshared and UFCS - Error: nested structs with constructors are not yet supported in CTFE (Bug 6419)
http://d.puremagic.com/issues/show_bug.cgi?id=7788 --- Comment #1 from simendsjo simend...@gmail.com 2012-03-28 00:44:40 PDT --- Oh, and the following works too: __gshared int[] ok3; ok3 = [1].map!(a*1)().array(); -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 7788] New: __gshared and UFCS - Error: nested structs with constructors are not yet supported in CTFE (Bug 6419)
http://d.puremagic.com/issues/show_bug.cgi?id=7788 Summary: __gshared and UFCS - Error: nested structs with constructors are not yet supported in CTFE (Bug 6419) Product: D Version: D2 Platform: All OS/Version: Linux Status: NEW Severity: regression Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: simend...@gmail.com --- Comment #0 from simendsjo simend...@gmail.com 2012-03-28 00:41:09 PDT --- The following worked on an earlier head of 2.059, but as of yesterday, it fails: import std.algorithm, std.array, std.utf, std.conv; void main() { auto ok = [1].map!(a*1)().array(); __gshared auto ok2 = [1].map!(a*1)(); __gshared auto bug = [1].map!(a*1)().array(); } Only tested on linux with and without -m32 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
Regex problem
I am having a problem with regexes. The following code causes a compilation error, whereas if I comment out the regex outside of main and comment in the regex inside main, it does compile. I'm using DMD v2.058. code import std.regex; Regex!(char) testRegex = regex(\\b(A(Z)?|B(Z)?|C(Z)?)\\b, i); void main() { // Regex!(char) testRegex = regex(\\b(A(Z)?|B(Z)?|C(Z)?)\\b, i); } /code The error is: code /usr/include/d/dmd/phobos/std/regex.d(2668): Error: assert(re.ir[t.pc].code() == cast(IR)130u) failed /usr/include/d/dmd/phobos/std/regex.d(2091):called from here: (Kickstart!(char) __ctmp1256 = 0; , __ctmp1256).this(this,new uint[](256u)) /usr/include/d/dmd/phobos/std/regex.d(2146):called from here: this.lightPostprocess() /usr/include/d/dmd/phobos/std/regex.d(1958):called from here: (Regex!(char) __ctmp1221 = 0; , __ctmp1221).this(this) /usr/include/d/dmd/phobos/std/regex.d(6402):called from here: parser.program() regex_test.d(3):called from here: regex(\\b(A(Z)?|B(Z)?|C(Z)?)\\b,i) /code
Re: Regex problem
On Wed, 28 Mar 2012 11:25:40 +0200, James Blewitt j...@jblewitt.com wrote: I am having a problem with regexes. The following code causes a compilation error, whereas if I comment out the regex outside of main and comment in the regex inside main, it does compile. I'm using DMD v2.058. code import std.regex; Regex!(char) testRegex = regex(\\b(A(Z)?|B(Z)?|C(Z)?)\\b, i); void main() { // Regex!(char) testRegex = regex(\\b(A(Z)?|B(Z)?|C(Z)?)\\b, i); } /code The error is: code /usr/include/d/dmd/phobos/std/regex.d(2668): Error: assert(re.ir[t.pc].code() == cast(IR)130u) failed /usr/include/d/dmd/phobos/std/regex.d(2091):called from here: (Kickstart!(char) __ctmp1256 = 0; , __ctmp1256).this(this,new uint[](256u)) /usr/include/d/dmd/phobos/std/regex.d(2146):called from here: this.lightPostprocess() /usr/include/d/dmd/phobos/std/regex.d(1958):called from here: (Regex!(char) __ctmp1221 = 0; , __ctmp1221).this(this) /usr/include/d/dmd/phobos/std/regex.d(6402):called from here: parser.program() regex_test.d(3):called from here: regex(\\b(A(Z)?|B(Z)?|C(Z)?)\\b,i) /code This newsgroup is read-only - don't know why it's allowed to post here. It's only meant as a bugzilla feed. Post bugs to http://d.puremagic.com/issues/, and ask questions in D.learn: http://forum.dlang.org/group/digitalmars.D.learn
Re: Regex problem
Ok, I'll do that. Thanks
Re: Regex problem
How can I put code into my posts without it looking bad?
Re: Regex problem
On Wed, 28 Mar 2012 11:30:40 +0200, James Blewitt j...@jblewitt.com wrote: How can I put code into my posts without it looking bad? Depends on your newsreader I guess. Using spaces instead of tabs and keeping linelengths below 80 usually makes the formatting ok.
[Issue 7788] __gshared and UFCS - Error: nested structs with constructors are not yet supported in CTFE (Bug 6419)
http://d.puremagic.com/issues/show_bug.cgi?id=7788 bearophile_h...@eml.cc changed: What|Removed |Added CC||bearophile_h...@eml.cc --- Comment #2 from bearophile_h...@eml.cc 2012-03-28 04:32:21 PDT --- This program: import std.algorithm, std.array; void main() { __gshared r = [1].map!q{a * 1}(); } gives to me (2.059head, 32 bit Windows): ...\dmd2\src\phobos\std\algorithm.d(461): Error: nested structs with constructors are not yet supported in CTFE (Bug 6419) test.d(3):called from here: map([1]) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 7691] A pure std.math.floor
http://d.puremagic.com/issues/show_bug.cgi?id=7691 hst...@quickfur.ath.cx changed: What|Removed |Added CC||hst...@quickfur.ath.cx --- Comment #1 from hst...@quickfur.ath.cx 2012-03-28 08:04:13 PDT --- Most std.math functions need use asm; we need to write ctfe versions for them. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 7782] [ICE] With wrong import syntax
http://d.puremagic.com/issues/show_bug.cgi?id=7782 Don clugd...@yahoo.com.au changed: What|Removed |Added Keywords||pull CC||clugd...@yahoo.com.au Severity|normal |regression --- Comment #1 from Don clugd...@yahoo.com.au 2012-03-28 08:17:59 PDT --- And it's a regression. My fault. https://github.com/D-Programming-Language/dmd/pull/844 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 7691] A pure std.math.floor
http://d.puremagic.com/issues/show_bug.cgi?id=7691 --- Comment #2 from bearophile_h...@eml.cc 2012-03-28 10:03:17 PDT --- (In reply to comment #1) Most std.math functions need use asm; we need to write ctfe versions for them. But note that I'd like to use it mostly in run-time code. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 7691] A pure std.math.floor
http://d.puremagic.com/issues/show_bug.cgi?id=7691 --- Comment #3 from hst...@quickfur.ath.cx 2012-03-28 10:05:51 PDT --- Does dmd even support pureness checking for asm blocks? If not, I'm not sure when we will be able to mark asm functions as pure. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 7691] A pure std.math.floor
http://d.puremagic.com/issues/show_bug.cgi?id=7691 Don clugd...@yahoo.com.au changed: What|Removed |Added CC||clugd...@yahoo.com.au --- Comment #4 from Don clugd...@yahoo.com.au 2012-03-28 11:12:44 PDT --- (In reply to comment #3) Does dmd even support pureness checking for asm blocks? If not, I'm not sure when we will be able to mark asm functions as pure. asm blocks are ignored for pureness checking. And I think it has to be that way. In the asm for BigInt, at one point I write to a static variable. That variable is never read from, EVER. It's a trick to force Intel processors to stay in sync every pass through the loop. It would be impossible to enforce, anyway. BTW: floor() isn't pure, because floorl() isn't pure, because floorl(), being a C function, may set the matherr variable. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 7789] New: [CTFE] null pointer exception on setting array length
http://d.puremagic.com/issues/show_bug.cgi?id=7789 Summary: [CTFE] null pointer exception on setting array length Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: d...@dawgfoto.de --- Comment #0 from d...@dawgfoto.de 2012-03-28 11:22:41 PDT --- cat bug.d CODE struct S { size_t foo() { _ary.length += 1; return _ary.length; } int[] _ary; } enum len = S().foo(); CODE dmd -c bug Happens only if array is a struct field and when read-assign on length (pre/post-increment or opAssign). -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 7722] Refuse normal functions to be used as properties
http://d.puremagic.com/issues/show_bug.cgi?id=7722 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added Status|NEW |RESOLVED CC||bugzi...@digitalmars.com Resolution||FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 7789] [CTFE] null pointer exception on setting array length
http://d.puremagic.com/issues/show_bug.cgi?id=7789 --- Comment #1 from github-bugzi...@puremagic.com 2012-03-28 16:15:56 PDT --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/e9b87a059a3291927c6d9f65a8c748996e59b01b Fix issue 7789 [CTFE] null pointer exception on setting array length https://github.com/D-Programming-Language/dmd/commit/b79b3f8a54daceed0e4c7519d6822a453f2ef7ba Merge pull request #845 from donc/ctfe7789 Fix issue 7789 [CTFE] null pointer exception on setting array length -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 7789] [CTFE] null pointer exception on setting array length
http://d.puremagic.com/issues/show_bug.cgi?id=7789 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added Status|NEW |RESOLVED CC||bugzi...@digitalmars.com Resolution||FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 7782] [ICE] With wrong import syntax
http://d.puremagic.com/issues/show_bug.cgi?id=7782 --- Comment #2 from github-bugzi...@puremagic.com 2012-03-28 17:15:32 PDT --- Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/2054d82275396ddc78e72767cb3982b9fe89c23d Merge pull request #844 from donc/regression7782 Fix issue 7782 Regression: ICE with wrong import syntax -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 7782] [ICE] With wrong import syntax
http://d.puremagic.com/issues/show_bug.cgi?id=7782 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added Status|NEW |RESOLVED CC||bugzi...@digitalmars.com Resolution||FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 7694] Internal error: e2ir.c 1251 when calling member function inside struct via alias param
http://d.puremagic.com/issues/show_bug.cgi?id=7694 --- Comment #5 from github-bugzi...@puremagic.com 2012-03-28 20:02:46 PDT --- Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/f8d472fed64a174472832d919f65b811fca0a968 Merge pull request #827 from 9rnsr/fix7694 Issue 7694 - Internal error: e2ir.c 1251 when calling member function inside struct via alias param -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 6659] Destructor in range foreach called after initialization
http://d.puremagic.com/issues/show_bug.cgi?id=6659 --- Comment #3 from github-bugzi...@puremagic.com 2012-03-28 21:42:31 PDT --- Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/b5aa4bc4cdb52ed6996e0afab9368fa6d0ae5934 Merge pull request #826 from 9rnsr/fix6659 fix Issue 6659 - Destructor in range foreach called after initialization -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 7790] New: [CTFE] assignment to AA apply ref argument
http://d.puremagic.com/issues/show_bug.cgi?id=7790 Summary: [CTFE] assignment to AA apply ref argument Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: d...@dawgfoto.de --- Comment #0 from d...@dawgfoto.de 2012-03-28 22:11:30 PDT --- struct Symbol { size_t _id; } size_t foo(Symbol[string] tree) { size_t i; foreach(k, ref v; tree) v._id = ++i; // has no effect return tree[a]._id; } static assert(foo([a:Symbol(0)]) == 1); The assignment to the ref value field has no effect. Looks like the value literal is copied before calling the foreach body. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 7791] New: Unnecessarily slow test in the DMD test suite
http://d.puremagic.com/issues/show_bug.cgi?id=7791 Summary: Unnecessarily slow test in the DMD test suite Product: D Version: D1 D2 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: clugd...@yahoo.com.au --- Comment #0 from Don clugd...@yahoo.com.au 2012-03-28 22:45:57 PDT --- The file testthread2.d is by far the slowest test in the test suite; it takes 10% of the total running time, yet it is only testing a single bug (bug 3930). It's so slow because it wasn't a fully reduced test. Now that the root cause is known, it should be possible to make a much better test. The other notably slow test is testgc3, which is a pretty useless test, because it can't even fail! It's another 4-5% of the running time. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 7792] New: DMD crushes when local enum array containing undefined
http://d.puremagic.com/issues/show_bug.cgi?id=7792 Summary: DMD crushes when local enum array containing undefined Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: kekeni...@yahoo.co.jp --- Comment #0 from kekeni...@yahoo.co.jp 2012-03-28 22:48:47 PDT --- void main() { enum a = [ UNDEFINED ]; } DMD crushes after compile error message. D1 does not crush. D2.053 or earlier doesn't, either. Environment: Windows XP SP3 32bit D2.058 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 6659] Destructor in range foreach called after initialization
http://d.puremagic.com/issues/show_bug.cgi?id=6659 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added Status|NEW |RESOLVED CC||bugzi...@digitalmars.com Resolution||FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 7694] Internal error: e2ir.c 1251 when calling member function inside struct via alias param
http://d.puremagic.com/issues/show_bug.cgi?id=7694 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added Status|NEW |RESOLVED CC||bugzi...@digitalmars.com Resolution||FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 7745] Regression (1.x git-415e48a) Methods defined in external object files when a pointer to it is taken
http://d.puremagic.com/issues/show_bug.cgi?id=7745 --- Comment #4 from github-bugzi...@puremagic.com 2012-03-28 22:54:42 PDT --- Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/3eee94d6116abfe437303f8495067bf32d3b7023 Merge pull request #824 from donc/regression7745 Fix issue 7745 Regression(2.059beta) Methods defined in external object ... -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---