[Issue 5440] ICE(template.c): when struct AssociativeArray is missing from object.d
http://d.puremagic.com/issues/show_bug.cgi?id=5440 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added Status|NEW |RESOLVED CC||bugzi...@digitalmars.com Resolution||FIXED --- Comment #2 from Walter Bright bugzi...@digitalmars.com 2011-08-10 00:42:52 PDT --- https://github.com/D-Programming-Language/dmd/commit/5a5defb9d34a3d6b1dd87cb5e6c5f234f7e562aa -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
SegFault when using writeln() and Fibers
When I try to print floats and double from a fiber it fails with a segfault, while it is possible to do it in the main thread. The expected output of the attached code file: 15 15 Done However I get: 15 segfault I am using the DMD64 D Compiler v2.054 on Debian 64 Kind regards, Danny Arends begin 644 test.d M+RHJB`J($)U9R!R97!OG0@9F]R($1-1#8T($0@0V]MEL97(@=C(N,#4T M(`H@*B`R,#$Q($1A;FYY($%R96YDPH@*BHOFEM]R=!C;W)E+G1HF5A M9#L*:6UP;W)T('-T9YS=1I;SL*F-L87-S(%1EW1#;%SR`Z($9I8F5R MPIP=6)L:6,ZB`@=AIR@IR!S=7!EB@FG5N*3L@?0H@(`H@('9O:60@ MG5N*E[B`@(!I;G0@#T@,3`[B`@(!I;G0@3T@-3L*(`@(9L;V%T M(UY9]U8FQE(#T@MY.PH@(`@=W)I=5L;BAM61O=6)L92D[(\O5AI MR!S96=F875L=',*(`@('EI96QD*D[B`@?0I]@IV;VED(UA:6XHW1R M:6YG6UT@87)GRE[B`@:6YT('@](#$P.PH@(EN=!Y/2`U.PH@(9L;V%T M(UY9]U8FQE(#T@MY.PH@('=R:71E;XH;7ED;W5B;4I.R`O+U1H:7,@ M=V]R:W,*B`@55S=$-L87-S('1EW1:6)EB`](YE=R!497-T0VQAW,H M*3L*(!T97-T1FEB97(N8V%L;@I.PH@('=R:71E;XH(D1O;F4B*3L*?0H` ` end
[Issue 6462] New: mixin() should accept arrays of char, as well as string literals
http://d.puremagic.com/issues/show_bug.cgi?id=6462 Summary: mixin() should accept arrays of char, as well as string literals Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: clugd...@yahoo.com.au --- Comment #0 from Don clugd...@yahoo.com.au 2011-08-10 02:52:19 PDT --- This test case comes from bug 6457. Not a regression, this has never worked. const char[] bug6462 = ['i','n','t',' ','a',';']; static assert(bug6462 == int a;); // OK mixin(bug6462); test3.d(3): Error: argument to mixin must be a string, not (['i','n','t',' ','a' ,';']) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 6457] [CTFE] .idup or casting of char[] does not really create a string literal recognizable in 'mixin', which causes a line-less error
http://d.puremagic.com/issues/show_bug.cgi?id=6457 Don clugd...@yahoo.com.au changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Comment #3 from Don clugd...@yahoo.com.au 2011-08-10 02:56:20 PDT --- This particular test case is fixed in this commit: https://github.com/D-Programming-Language/dmd/commit/df2b9cdff0f5c23449be7a6b9a875bcf92b38f8d I created bug 6462 for the test case in comment 2, which has does not involve CTFE. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 6463] New: Segfault on writeln() from a Fiber
http://d.puremagic.com/issues/show_bug.cgi?id=6463 Summary: Segfault on writeln() from a Fiber Product: D Version: D2 Platform: x86_64 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: danny.are...@gmail.com --- Comment #0 from Danny Arends danny.are...@gmail.com 2011-08-10 03:10:21 PDT --- Trying to print floats and doubles from a fiber it fails with a segfault, while it is possible to do the same in the main thread. The expected output of the attached code file: 15 15 Done However I get: 15 segfault I am using the DMD64 D Compiler v 2.054 on Debian 64 What am I doing wrong, because using to!string() on the floats and double allows me to print them to std.out. I however get weird behavior when I try to do math on the floats and doubles in the fiber, or when I pass them to C-functions. Kind regards, Danny -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
Re: SegFault when using writeln() and Fibers
On Wednesday, August 10, 2011 09:47:42 Danny Arends wrote: --nextPart77238143.e8O9o76Zdv When I try to print floats and double from a fiber it fails with a segfault, while it is possible to do it in the main thread. The expected output of the attached code file: 15 15 Done However I get: 15 segfault I am using the DMD64 D Compiler v2.054 on Debian 64 Kind regards, Danny Arends --nextPart77238143.e8O9o76Zdv LyoqCiAqIEJ1ZyByZXBvcnQgZm9yIERNRDY0IEQgQ29tcGlsZXIgdjIuMDU0IAogKiAyMDExIERh bm55IEFyZW5kcwogKiovCmltcG9ydCBjb3JlLnRocmVhZDsKaW1wb3J0IHN0ZC5zdGRpbzsKCmN s YXNzIFRlc3RDbGFzcyA6IEZpYmVyewpwdWJsaWM6CiAgdGhpcygpeyBzdXBlcigmcnVuKTsgfQo g IAogIHZvaWQgcnVuKCl7CiAgICBpbnQgeD0gMTA7CiAgICBpbnQgeT0gNTsKICAgIGZsb2F0IG1 5 ZG91YmxlID0geCt5OwogICAgd3JpdGVsbihteWRvdWJsZSk7IC8vVGhpcyBzZWdmYXVsdHMKICA g IHlpZWxkKCk7CiAgfQp9Cgp2b2lkIG1haW4oc3RyaW5nW10gYXJncyl7CiAgaW50IHg9IDEwOwo g IGludCB5PSA1OwogIGZsb2F0IG15ZG91YmxlID0geCt5OwogIHdyaXRlbG4obXlkb3VibGUpOyA v L1RoaXMgd29ya3MKCiAgVGVzdENsYXNzIHRlc3RGaWJlciA9IG5ldyBUZXN0Q2xhc3MoKTsKICB 0 ZXN0RmliZXIuY2FsbCgpOwogIHdyaXRlbG4oIkRvbmUiKTsKfQoA --nextPart77238143.e8O9o76Zdv-- Please don't post directly to this list. You sign up for this list so that you can see all of the messages from bugzilla. It's not intended to be posted to directly. Please post in D.Learn instead if you have a question, and if you have a bug to report, report it at d.puremagic.com/issues. - Jonathan M Davis
[Issue 6464] New: Unittests in libraries isn't run
http://d.puremagic.com/issues/show_bug.cgi?id=6464 Summary: Unittests in libraries isn't run Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: druntime AssignedTo: nob...@puremagic.com ReportedBy: simend...@gmail.com --- Comment #0 from simendsjo simend...@gmail.com 2011-08-10 03:30:47 PDT --- Ref: http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.comgroup=digitalmars.D.learnartnum=28755 Is it possible to run unittests in libraries? The following doesn't work: l.d === module l; import std.stdio; int f() { return 1; } // just to make sure it's actually compiled in unittest { writeln(Unittest from lib); assert(false); } t.d === import l; import std.stdio; void main() { writeln(f()); } dmd -unittest -lib l dmd -unittest t l.lib t.exe 1 // should write Unittest from lib and assert -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 6464] Unittests in libraries isn't run
http://d.puremagic.com/issues/show_bug.cgi?id=6464 Mike Parker aldac...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED CC||aldac...@gmail.com Resolution||DUPLICATE --- Comment #1 from Mike Parker aldac...@gmail.com 2011-08-10 03:49:56 PDT --- *** This issue has been marked as a duplicate of issue 4669 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 2156] [] and null should be accepted where a compile-time string is required
http://d.puremagic.com/issues/show_bug.cgi?id=2156 yebblies yebbl...@gmail.com changed: What|Removed |Added CC||clugd...@yahoo.com.au --- Comment #3 from yebblies yebbl...@gmail.com 2011-08-11 02:28:19 EST --- *** Issue 6462 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 6465] New: Selective imports don't work from inside a function
http://d.puremagic.com/issues/show_bug.cgi?id=6465 Summary: Selective imports don't work from inside a function Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: dsim...@yahoo.com --- Comment #0 from David Simcha dsim...@yahoo.com 2011-08-10 11:32:16 PDT --- / module a; void main() { import b : foo; foo(); } / module b; void foo() { import std.stdio; writeln(FOO); } $ dmd a.d b.d a.d(6): Error: undefined identifier foo -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 6465] Selective imports don't work from inside a function
http://d.puremagic.com/issues/show_bug.cgi?id=6465 bearophile_h...@eml.cc changed: What|Removed |Added CC||bearophile_h...@eml.cc --- Comment #1 from bearophile_h...@eml.cc 2011-08-10 11:49:10 PDT --- Like bug 6272 ? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 6466] New: core.demangle incorrect demangling of variables
http://d.puremagic.com/issues/show_bug.cgi?id=6466 Summary: core.demangle incorrect demangling of variables Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: minor Priority: P2 Component: druntime AssignedTo: nob...@puremagic.com ReportedBy: mrmoc...@gmx.de --- Comment #0 from Trass3r mrmoc...@gmx.de 2011-08-10 12:33:37 PDT --- _D11CLGLInterop2CQC6opencl12commandqueue14CLCommandQueue gets demangled as CLGLInterop.CQopencl.commandqueue.CLCommandQueue Don't know what the correct output is (to make clear CQ is a variable), but there should at least be a space in between. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 4563] [module system] Error messages for missing package or missing name
http://d.puremagic.com/issues/show_bug.cgi?id=4563 --- Comment #2 from bearophile_h...@eml.cc 2011-08-10 14:05:55 PDT --- Giving code to a D newbie such person didn't know what this error message means: foo.d(3): Error: module ascii is in file 'std/ascii.d' which cannot be read import path[0] = /usr/include/d import path[1] = /usr/include/d/druntime/import The problem was simple, he has used dmd 2.053 instead of the successive one, so std.ascii was not present yet. This error message is not clear enough. In a similar situation Python2 gives: ImportError: No module named foo I suggest an error message like: foo.d(3): Error: module std.ascii not found (file 'std/ascii.d'). -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 2299] the ABI documentation for registry convention does not include IA-64 platform
http://d.puremagic.com/issues/show_bug.cgi?id=2299 Trass3r mrmoc...@gmx.de changed: What|Removed |Added Keywords||spec CC||mrmoc...@gmx.de --- Comment #2 from Trass3r mrmoc...@gmx.de 2011-08-10 19:05:50 PDT --- Now that x64 is supported by dmd, could the ABI document be updated to accommodate that? btw currently structs of size 16 bytes are passed via a hidden parameter rather than in 2 registers. Maybe even more registers could be used since there are more available. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 6465] Selective imports don't work from inside a function
http://d.puremagic.com/issues/show_bug.cgi?id=6465 David Simcha dsim...@yahoo.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution||DUPLICATE --- Comment #2 from David Simcha dsim...@yahoo.com 2011-08-10 20:44:07 PDT --- (In reply to comment #1) Like bug 6272 ? Yes, thanks. Closing as a duplicate. *** This issue has been marked as a duplicate of issue 6272 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 6272] Named import in functions problem
http://d.puremagic.com/issues/show_bug.cgi?id=6272 David Simcha dsim...@yahoo.com changed: What|Removed |Added CC||dsim...@yahoo.com --- Comment #1 from David Simcha dsim...@yahoo.com 2011-08-10 20:44:07 PDT --- *** Issue 6465 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 6443] [GSoC] Catching exceptions in fibers broken on Windows/Linux x86_64
http://d.puremagic.com/issues/show_bug.cgi?id=6443 klickverbot c...@klickverbot.at changed: What|Removed |Added Summary|[GSoC] Catching exceptions |[GSoC] Catching exceptions |in fibers broken on Windows |in fibers broken on ||Windows/Linux x86_64 --- Comment #2 from klickverbot c...@klickverbot.at 2011-08-10 21:39:58 PDT --- I unfortunately stand corrected: The snippet crashes on Linux x86_64 as well: --- #0 0x77dec9d4 in _dl_sysdep_read_whole_file () from /lib/ld-linux-x86-64.so.2 #1 0x77de68aa in _dl_load_cache_lookup () from /lib/ld-linux-x86-64.so.2 #2 0x77de5ebe in _dl_map_object () from /lib/ld-linux-x86-64.so.2 #3 0x77defa9b in dl_open_worker () from /lib/ld-linux-x86-64.so.2 #4 0x77deb9e6 in _dl_catch_error () from /lib/ld-linux-x86-64.so.2 #5 0x77def63a in _dl_open () from /lib/ld-linux-x86-64.so.2 #6 0x774df600 in ?? () from /lib/libc.so.6 #7 0x77deb9e6 in _dl_catch_error () from /lib/ld-linux-x86-64.so.2 #8 0x774df69f in ?? () from /lib/libc.so.6 #9 0x774df707 in __libc_dlopen_mode () from /lib/libc.so.6 #10 0x7745 in ?? () from /lib/libc.so.6 #11 0x779c5ff0 in pthread_once () from /lib/libpthread.so.0 #12 0x774bbcd4 in backtrace () from /lib/libc.so.6 #13 0x00419cf3 in core.runtime.defaultTraceHandler() () #14 0x in ?? () --- From the above trace, this seems to be a problem in the default backtrace handler, and indeed, when I disable it by calling rt_setTraceHandler(0) (e.g. from GDB), the program works as expected (on Windows, it crashes regardless of whether the handler is enabled or not). -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 6025] Fiber does not rethrow exceptions
http://d.puremagic.com/issues/show_bug.cgi?id=6025 klickverbot c...@klickverbot.at changed: What|Removed |Added Status|NEW |RESOLVED CC||c...@klickverbot.at Resolution||DUPLICATE --- Comment #1 from klickverbot c...@klickverbot.at 2011-08-10 22:03:38 PDT --- *** This issue has been marked as a duplicate of issue 6443 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 6443] [GSoC] Catching exceptions in fibers broken on Windows/Linux x86_64
http://d.puremagic.com/issues/show_bug.cgi?id=6443 klickverbot c...@klickverbot.at changed: What|Removed |Added CC||psztur...@tlen.pl --- Comment #3 from klickverbot c...@klickverbot.at 2011-08-10 22:03:39 PDT --- *** Issue 6025 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: ---