[Issue 3207] [meta] Push GDB support to upstream
http://d.puremagic.com/issues/show_bug.cgi?id=3207 --- Comment #8 from Leandro Lucarella 2009-09-03 17:31:38 PDT --- The latest patch were sent to gdb-patches. Mihail is waiting for the legal GDB papers to sign them, John Demme seems to be lost again :( -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3298] std.file.read on OSX: "Memory allocation failed"
http://d.puremagic.com/issues/show_bug.cgi?id=3298 --- Comment #1 from Michel Fortin 2009-09-03 17:28:35 PDT --- It looks like using this struct definition for "struct_stat64" on OSX fixes the problem. struct struct_stat64// distinguish it from the stat() function { uint st_dev;/// device ushort st_mode; ushort st_nlink;/// link count ulong st_ino;/// file serial number uint st_uid;/// user ID of file's owner uint st_gid;/// user ID of group's owner uint st_rdev;/// if device then device number int st_atime; uint st_atimensec; int st_mtime; uint st_mtimensec; int st_ctime; uint st_ctimensec; int st_birthtime; uint st_birthtimensec; ulong st_size; long st_blocks;/// number of allocated 512 byte blocks int st_blksize;/// optimal I/O block size ulong st_ino64; uint st_flags; uint st_gen; int st_lspare; /* RESERVED: DO NOT USE! */ long st_qspare[2]; /* RESERVED: DO NOT USE! */ } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3298] New: std.file.read on OSX: "Memory allocation failed"
http://d.puremagic.com/issues/show_bug.cgi?id=3298 Summary: std.file.read on OSX: "Memory allocation failed" Product: D Version: 2.032 Platform: x86_64 OS/Version: Mac OS X Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nob...@puremagic.com ReportedBy: michel.for...@michelf.com In almost all cases, calling std.file.read a second time I throws a "Memory Allocation Failed" error and the program exits. This simple program (that prints itself) fails on my OS X machine at the second call to read. import std.file : read; import std.stdio : writeln; int main(string[] args) { scope(success) writeln("Done"); scope(failure) writeln("Failure"); writeln(read(__FILE__)); // works writeln(read(__FILE__)); // error return 0; } Debugging a little, I find that "fstat64(fd, &statbuf)" returns an gigantic file size (more than 1 Go), which then gets passed to GC.malloc. So it seems that fstat64 doesn't work correctly on Mac OS X, or more likely the layout of struct_stat64 may be different on Mac OS X and this has not been taken into account in the declaration. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3297] readln example doesn't compile
http://d.puremagic.com/issues/show_bug.cgi?id=3297 Andrei Alexandrescu changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution||FIXED --- Comment #1 from Andrei Alexandrescu 2009-09-03 15:57:37 PDT --- Coming with 2.033. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3297] readln example doesn't compile
http://d.puremagic.com/issues/show_bug.cgi?id=3297 Andrei Alexandrescu changed: What|Removed |Added Status|NEW |ASSIGNED CC||and...@metalanguage.com AssignedTo|nob...@puremagic.com|and...@metalanguage.com -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3297] New: readln example doesn't compile
http://d.puremagic.com/issues/show_bug.cgi?id=3297 Summary: readln example doesn't compile Product: D Version: 2.031 Platform: Other URL: http://digitalmars.com/d/2.0/phobos/std_stdio.html#rea dln OS/Version: All Status: NEW Severity: normal Priority: P2 Component: www.digitalmars.com AssignedTo: nob...@puremagic.com ReportedBy: jesse.k.phillip...@gmail.com CC: jesse.k.phillip...@gmail.com The example code for std.stdio.readln does not compile. By changing 'readln(stdin...' to 'stdin.readln(...' the code below compiles: import std.stdio; void main() { char[] buf; while (stdin.readln(buf)) write(buf); return 0; } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 259] Comparing signed to unsigned does not generate an error
http://d.puremagic.com/issues/show_bug.cgi?id=259 --- Comment #14 from Ellery Newcomer 2009-09-03 13:51:16 PDT --- Okay, so what I have is it checks for signed cmp unsigned or vice versa in CmpExp::Semantic just before typeCombine gets called, which works, but then stuff like 1 < 1u doesn't. So the idea is signed cmp unsigned or vice versa is okay if the signed arg is a literal and its value is nonnegative. This should work fine if sizeof(signed arg) =< sizeof(unsigned arg) because the value of the signed arg is within the range of the unsigned arg, and typeCombine should be able to expand the type of the signed arg to that of the unsigned arg or whatever. It should work if sizeof(signed arg) > sizeof(unsigned arg) because the value of the unsigned arg is within the range of the signed arg, and typeCombine should be able to expand the type of the unsigned arg to that of the signed arg. I don't know, maybe this should be happening in typeCombine. Insert the following in expression.c CmpExp::semantic before the line typeCombine(sc); if ( e1->type->isintegral() && e2->type->isintegral()){ if(e1->type->isunsigned() ^ e2->type->isunsigned()){ if(!e1->type->isunsigned() && dynamic_cast(e1) && ((sinteger_t) e1->toInteger()) >= 0) goto JustKidding; if(!e2->type->isunsigned() && dynamic_cast(e2) && ((sinteger_t) e2->toInteger()) >= 0) goto JustKidding; error("comparing signed and unsigned integers"); } JustKidding:; } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3255] final switch broken with -w switch
http://d.puremagic.com/issues/show_bug.cgi?id=3255 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED CC||bugzi...@digitalmars.com Resolution||FIXED --- Comment #1 from Walter Bright 2009-09-03 13:45:22 PDT --- Fixed dmd 2.032 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3257] Spec is unclear describing string switch case labels
http://d.puremagic.com/issues/show_bug.cgi?id=3257 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED CC||bugzi...@digitalmars.com Resolution||FIXED --- Comment #2 from Walter Bright 2009-09-03 13:45:38 PDT --- Fixed dmd 2.032 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3281] ICE(cod1.c) append returned struct to array
http://d.puremagic.com/issues/show_bug.cgi?id=3281 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED CC||bugzi...@digitalmars.com Resolution||FIXED --- Comment #2 from Walter Bright 2009-09-03 13:46:02 PDT --- Fixed dmd 2.032 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3253] DMD crashes on function pointer struct member initialization with function literal
http://d.puremagic.com/issues/show_bug.cgi?id=3253 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED CC||bugzi...@digitalmars.com Resolution||FIXED --- Comment #1 from Walter Bright 2009-09-03 13:45:08 PDT --- Fixed dmd 2.032 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 2925] Destructor not called
http://d.puremagic.com/issues/show_bug.cgi?id=2925 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED CC||bugzi...@digitalmars.com Resolution||FIXED --- Comment #1 from Walter Bright 2009-09-03 13:35:58 PDT --- Fixed dmd 2.032 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3169] Segfault(cast.c) dividing ulong by int
http://d.puremagic.com/issues/show_bug.cgi?id=3169 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED CC||bugzi...@digitalmars.com Resolution||FIXED --- Comment #4 from Walter Bright 2009-09-03 13:41:11 PDT --- Fixed dmd 2.032 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3236] Postblit called but no matching destructor
http://d.puremagic.com/issues/show_bug.cgi?id=3236 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED CC||bugzi...@digitalmars.com Resolution||FIXED --- Comment #1 from Walter Bright 2009-09-03 13:43:53 PDT --- Fixed dmd 2.032 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3229] No return or assert(0) at end of function
http://d.puremagic.com/issues/show_bug.cgi?id=3229 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Comment #4 from Walter Bright 2009-09-03 13:43:38 PDT --- Fixed dmd 2.032 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3185] osx is not a directory (complains cannot read std/c/osx/socket.d)
http://d.puremagic.com/issues/show_bug.cgi?id=3185 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED CC||bugzi...@digitalmars.com Resolution||FIXED --- Comment #1 from Walter Bright 2009-09-03 13:41:37 PDT --- Fixed dmd 2.032 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3212] Error message says "mutable"; should say "immutable"
http://d.puremagic.com/issues/show_bug.cgi?id=3212 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED CC||bugzi...@digitalmars.com Resolution||FIXED --- Comment #1 from Walter Bright 2009-09-03 13:42:50 PDT --- Fixed dmd 2.032 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3153] win32.mak tries to copy phobos.lib, gcstub.obj to nonexistent folder lib
http://d.puremagic.com/issues/show_bug.cgi?id=3153 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED CC||bugzi...@digitalmars.com Resolution||FIXED --- Comment #4 from Walter Bright 2009-09-03 13:40:34 PDT --- Fixed dmd 2.032 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3162] can't fully use compile-time floats as template parameters
http://d.puremagic.com/issues/show_bug.cgi?id=3162 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED CC||bugzi...@digitalmars.com Resolution||FIXED --- Comment #6 from Walter Bright 2009-09-03 13:40:51 PDT --- Fixed dmd 2.032 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 2937] postblit not called for foreach arg over array of structs
http://d.puremagic.com/issues/show_bug.cgi?id=2937 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED CC||bugzi...@digitalmars.com Resolution||FIXED --- Comment #3 from Walter Bright 2009-09-03 13:36:16 PDT --- Fixed dmd 2.032 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3100] ICE(cast.c) when a struct with members is shared
http://d.puremagic.com/issues/show_bug.cgi?id=3100 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED CC||bugzi...@digitalmars.com Resolution||FIXED --- Comment #1 from Walter Bright 2009-09-03 13:39:46 PDT --- Fixed dmd 2.032 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3077] crash exiting main() without result code
http://d.puremagic.com/issues/show_bug.cgi?id=3077 Walter Bright changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution||FIXED --- Comment #5 from Walter Bright 2009-09-03 13:39:14 PDT --- Fixed dmd 2.032 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3058] [CTFE] Cannot return out of foreach range statement
http://d.puremagic.com/issues/show_bug.cgi?id=3058 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Comment #1 from Walter Bright 2009-09-03 13:38:48 PDT --- Fixed dmd 2.032 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 2665] ICE(cod4.c) on certain const struct function return types
http://d.puremagic.com/issues/show_bug.cgi?id=2665 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED CC||bugzi...@digitalmars.com Resolution||FIXED --- Comment #6 from Walter Bright 2009-09-03 13:35:07 PDT --- Fixed dmd 2.032 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 1972] Foreach range statement breaks CTFE
http://d.puremagic.com/issues/show_bug.cgi?id=1972 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Comment #2 from Walter Bright 2009-09-03 13:33:22 PDT --- Fixed dmd 2.032 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 2560] ICE(cod4.c) on invoking method that takes ref const struct parameter
http://d.puremagic.com/issues/show_bug.cgi?id=2560 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED CC||bugzi...@digitalmars.com Resolution||FIXED --- Comment #10 from Walter Bright 2009-09-03 13:34:17 PDT --- Fixed dmd 2.032 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3296] New: DMD crash with no output
http://d.puremagic.com/issues/show_bug.cgi?id=3296 Summary: DMD crash with no output Product: D Version: 2.031 Platform: Other OS/Version: Windows Status: NEW Keywords: ice-on-invalid-code Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: 2kor...@gmail.com The following code crashes DMD. Can you find out what's wrong with it? :) interface Interface { void doStuff(); } class Class : public Interface { public final doStuff() { } } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3296] DMD crash with no output
http://d.puremagic.com/issues/show_bug.cgi?id=3296 --- Comment #1 from Koroskin Denis <2kor...@gmail.com> 2009-09-03 13:34:52 PDT --- Probably related, the following code is accepted without a complaint: class Class { public final doStuff() { } } (not accepted if no 'final' presents) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 2564] CTFE: the index in a tuple foreach is uninitialized (bogus error)
http://d.puremagic.com/issues/show_bug.cgi?id=2564 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED CC||bugzi...@digitalmars.com Resolution||FIXED --- Comment #2 from Walter Bright 2009-09-03 13:34:33 PDT --- Fixed dmd 2.032 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 2277] array ops and const arrays incompatible
http://d.puremagic.com/issues/show_bug.cgi?id=2277 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Comment #2 from Walter Bright 2009-09-03 13:33:55 PDT --- Fixed dmd 2.032 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 1969] ICE(cod1.c) using undefined operator with one const operand
http://d.puremagic.com/issues/show_bug.cgi?id=1969 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED CC||bugzi...@digitalmars.com Resolution||FIXED --- Comment #3 from Walter Bright 2009-09-03 13:33:04 PDT --- Fixed dmd 2.032 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3196] Segfault(mtype.c) after almost any error involving a delegate literal
http://d.puremagic.com/issues/show_bug.cgi?id=3196 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED CC||bugzi...@digitalmars.com Resolution||FIXED --- Comment #5 from Walter Bright 2009-09-03 13:27:18 PDT --- Fixed dmd 1.047 and 2.032 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3294] New: forward reference to inferred return type of function call
http://d.puremagic.com/issues/show_bug.cgi?id=3294 Summary: forward reference to inferred return type of function call Product: D Version: 2.031 Platform: Other OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: 2kor...@gmail.com module Test; struct SomeInfiniteRange { int front() { return 42; } enum empty = false; void popFront() {} } struct SomeContainer(T) { auto opSlice() { return SomeInfiniteRange(); } } class Test { void test() { foreach (int f; _foo[]) { // do nothing } } private SomeContainer!(int) _foo; } Test.d(23): Error: forward reference to inferred return type of function call this._foo.opSlice() Test.d(23): Error: foreach: int is not an aggregate type Note that the code compiles just fine if SomeContainer is a concrete struct (not a template) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3246] ICE(init.c) using indexed array initializer on local array
http://d.puremagic.com/issues/show_bug.cgi?id=3246 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED CC||bugzi...@digitalmars.com Resolution||FIXED --- Comment #1 from Walter Bright 2009-09-03 13:27:57 PDT --- Fixed dmd 1.047 and 2.032 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3264] -O causes wrong "used before set" error when using enum.
http://d.puremagic.com/issues/show_bug.cgi?id=3264 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Comment #2 from Walter Bright 2009-09-03 13:28:17 PDT --- Fixed dmd 1.047 and 2.032 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3122] [patch] Adding support for fast and reliable build tools to the frontend
http://d.puremagic.com/issues/show_bug.cgi?id=3122 Walter Bright changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution||FIXED --- Comment #7 from Walter Bright 2009-09-03 13:29:01 PDT --- Fixed dmd 1.047 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3192] Segfault(iasm.c) asm in a anonymous delegate
http://d.puremagic.com/issues/show_bug.cgi?id=3192 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Comment #5 from Walter Bright 2009-09-03 13:27:02 PDT --- Fixed dmd 1.047 and 2.032 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3205] CTFE: $ cannot be used in lvalues
http://d.puremagic.com/issues/show_bug.cgi?id=3205 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED CC||bugzi...@digitalmars.com Resolution||FIXED --- Comment #2 from Walter Bright 2009-09-03 13:27:36 PDT --- Fixed dmd 1.047 and 2.032 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3183] Spec of align attribute needs work
http://d.puremagic.com/issues/show_bug.cgi?id=3183 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Comment #3 from Walter Bright 2009-09-03 13:26:26 PDT --- Fixed dmd 1.047 and 2.032 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3039] -vtls compiler flag not listed in man file
http://d.puremagic.com/issues/show_bug.cgi?id=3039 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED CC||bugzi...@digitalmars.com Resolution||FIXED --- Comment #2 from Walter Bright 2009-09-03 13:25:17 PDT --- Fixed dmd 1.047 and 2.032 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3170] Forward reference of nested class fails if outer class is not plain
http://d.puremagic.com/issues/show_bug.cgi?id=3170 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Comment #13 from Walter Bright 2009-09-03 13:26:07 PDT --- Fixed dmd 1.047 and 2.032 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3295] New: range's "front" property can not be an enum
http://d.puremagic.com/issues/show_bug.cgi?id=3295 Summary: range's "front" property can not be an enum Product: D Version: 2.031 Platform: Other OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: 2kor...@gmail.com struct SomeInfiniteRange { enum front = 42;// not allowed enum empty = false; // allowed void popFront() {} } struct SomeContainer { auto opSlice() { return SomeInfiniteRange(); } } class Test { void test() { foreach (int f; _foo[]) { // do nothing } } private SomeContainer _foo; } test.d(21): Error: no property 'opApply' for type 'SomeInfiniteRange' test.d(21): Error: function expected before (), not __error of type int -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3168] Declaring structs as incomplete types no longer works
http://d.puremagic.com/issues/show_bug.cgi?id=3168 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED CC||bugzi...@digitalmars.com Resolution||FIXED --- Comment #5 from Walter Bright 2009-09-03 13:29:20 PDT --- Fixed dmd 1.047 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 2960] CTFE rejects static array to dynamic array casts
http://d.puremagic.com/issues/show_bug.cgi?id=2960 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Comment #1 from Walter Bright 2009-09-03 13:28:38 PDT --- Fixed dmd 1.047 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3186] corrections for http://www.digitalmars.com/d/2.0/dmd-osx.html
http://d.puremagic.com/issues/show_bug.cgi?id=3186 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED CC||bugzi...@digitalmars.com Resolution||FIXED --- Comment #1 from Walter Bright 2009-09-03 13:26:45 PDT --- Fixed dmd 1.047 and 2.032 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3166] "positive" -> "non-negative" in modulo operator description
http://d.puremagic.com/issues/show_bug.cgi?id=3166 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED CC||bugzi...@digitalmars.com Resolution||FIXED --- Comment #3 from Walter Bright 2009-09-03 13:25:49 PDT --- Fixed dmd 1.047 and 2.032 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3165] What kind of integer division does D use?
http://d.puremagic.com/issues/show_bug.cgi?id=3165 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED CC||bugzi...@digitalmars.com Resolution||FIXED --- Comment #3 from Walter Bright 2009-09-03 13:25:32 PDT --- Fixed dmd 1.047 and 2.032 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 2604] DW_TAG_module and GDB
http://d.puremagic.com/issues/show_bug.cgi?id=2604 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Comment #5 from Walter Bright 2009-09-03 13:24:42 PDT --- Fixed dmd 1.047 and 2.032 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 1605] break in switch with goto breaks in ctfe
http://d.puremagic.com/issues/show_bug.cgi?id=1605 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED CC||bugzi...@digitalmars.com Resolution||FIXED --- Comment #2 from Walter Bright 2009-09-03 13:22:55 PDT --- Fixed dmd 1.047 and 2.032 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 1950] CTFE doesn't work correctly for structs passed by ref
http://d.puremagic.com/issues/show_bug.cgi?id=1950 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED CC||bugzi...@digitalmars.com Resolution||FIXED --- Comment #4 from Walter Bright 2009-09-03 13:23:39 PDT --- Fixed dmd 1.047 and 2.032 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 2575] gdb can not show code
http://d.puremagic.com/issues/show_bug.cgi?id=2575 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Comment #10 from Walter Bright 2009-09-03 13:24:21 PDT --- Fixed dmd 1.047 and 2.032 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 1948] CTFE fails when mutating a struct in an array
http://d.puremagic.com/issues/show_bug.cgi?id=1948 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED CC||bugzi...@digitalmars.com Resolution||FIXED --- Comment #3 from Walter Bright 2009-09-03 13:23:18 PDT --- Fixed dmd 1.047 and 2.032 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3293] New: A few more bugs with template mixins with identifiers
http://d.puremagic.com/issues/show_bug.cgi?id=3293 Summary: A few more bugs with template mixins with identifiers Product: D Version: 2.031 Platform: Other OS/Version: Windows Status: NEW Keywords: ice-on-valid-code, rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: 2kor...@gmail.com template ReferenceType(T) { alias T* ReferenceType; } struct SomeRange(T, alias Storage = 0) { bool foo() { return guard == guard;// bug 1: replace == with is and DMD crashes with no output } enum guard = cast(ReferenceType!(T))SomeContainer!(T, Storage).guard; } struct SomeContainer(T, alias Storage = 0) { auto opSlice()// bug 2: replace auto with SomeRange!(T, Storage) and get an ICE { return SomeRange!(T, Storage)(); } enum ReferenceType!(T) guard = cast(ReferenceType!(T))cast(void*)0xFEFEFEFE;// bug 3: remove guard type and DMD crashes with no output } class A { SomeRange!(int, 0) test()// bug 4: 0 is not omissible { return SomeContainer!(int)()[]; } } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 2569] static arrays in CTFE functions don't compile
http://d.puremagic.com/issues/show_bug.cgi?id=2569 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED CC||bugzi...@digitalmars.com Resolution||FIXED --- Comment #11 from Walter Bright 2009-09-03 13:24:02 PDT --- Fixed dmd 1.047 and 2.032 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 2940] null is null cannot be evaluated at compile time
http://d.puremagic.com/issues/show_bug.cgi?id=2940 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Comment #3 from Walter Bright 2009-09-03 13:25:00 PDT --- Fixed dmd 1.047 and 2.032 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 601] statement.html - Formatting/markup errors in BNF
http://d.puremagic.com/issues/show_bug.cgi?id=601 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Comment #4 from Walter Bright 2009-09-03 13:22:10 PDT --- Fixed dmd 1.047 and 2.032 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 1461] Local variable as template alias parameter breaks CTFE
http://d.puremagic.com/issues/show_bug.cgi?id=1461 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED CC||bugzi...@digitalmars.com Resolution||FIXED --- Comment #2 from Walter Bright 2009-09-03 13:22:35 PDT --- Fixed dmd 1.047 and 2.032 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3292] New: ICE(todt.c) when using a named mixin with an initializer
http://d.puremagic.com/issues/show_bug.cgi?id=3292 Summary: ICE(todt.c) when using a named mixin with an initializer Product: D Version: 2.031 Platform: Other OS/Version: Windows Status: NEW Keywords: ice-on-valid-code Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: 2kor...@gmail.com template Magic() { void* magic = null;// remove = null; and bug disappears } struct Item { mixin Magic A; } struct Foo(alias S) { } void main() { Foo!(Item.A) bar; } Assertion failure: 'type' on line 529 in file 'todt.c' -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3291] New: Bad codegen when using templates with a named mixin as a parameter
http://d.puremagic.com/issues/show_bug.cgi?id=3291 Summary: Bad codegen when using templates with a named mixin as a parameter Product: D Version: 2.031 Platform: Other OS/Version: Windows Status: NEW Keywords: wrong-code Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: 2kor...@gmail.com template Magic() { int magic; } struct Item { mixin Magic A; } struct Foo(alias S) { } void main() { Item* i1 = new Item; Item* i2 = new Item; Foo!(Item.A) bar; // comment-out this line for a successful run assert(i2.A.magic == 0); i1.A.magic = 42; assert(i2.A.magic == 0); } core.exception.asserter...@test.d(24): Assertion failure -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3290] New: accepts-invalid: non-const by-ref foreach over a const array is accepted
http://d.puremagic.com/issues/show_bug.cgi?id=3290 Summary: accepts-invalid: non-const by-ref foreach over a const array is accepted Product: D Version: 2.031 Platform: Other OS/Version: Windows Status: NEW Keywords: accepts-invalid Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: 2kor...@gmail.com The following test-case shouldn't compile: void main() { const(int)[] array; foreach (ref int i; array) { // i = 42; } } Note that modifying the 'i' is still prohibited. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3289] New: ICE (..\ztc\cod4.c) when using a delegate inside a foreach
http://d.puremagic.com/issues/show_bug.cgi?id=3289 Summary: ICE (..\ztc\cod4.c) when using a delegate inside a foreach Product: D Version: 2.031 Platform: Other OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: 2kor...@gmail.com Minimal testcase to reproduce: struct Foo { int i; } void main() { Foo[] array; foreach (ref foo; array) { auto x = () { foo.i = 42; }; } } Internal error: ..\ztc\cod4.c 354 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 2790] std.path.join with version(Windows)
http://d.puremagic.com/issues/show_bug.cgi?id=2790 Andrei Alexandrescu changed: What|Removed |Added Status|NEW |RESOLVED CC||and...@metalanguage.com Resolution||FIXED AssignedTo|nob...@puremagic.com|and...@metalanguage.com --- Comment #3 from Andrei Alexandrescu 2009-09-03 12:50:11 PDT --- Sorry, I missed this one. The fix is now in svn and will be in the next release. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 2790] std.path.join with version(Windows)
http://d.puremagic.com/issues/show_bug.cgi?id=2790 --- Comment #2 from Haruki Shigemori 2009-09-03 11:35:51 PDT --- This is very easily bug. I want to fix it next update. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3287] DANGER!! Generating wrong binaries by initializing of between different type structs
http://d.puremagic.com/issues/show_bug.cgi?id=3287 --- Comment #2 from Haruki Shigemori 2009-09-03 11:39:55 PDT --- Oh, sorry! I forgot the first commit. This is the second commit about the same issue. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3288] conv.d : using to with const int or long fails to compile.
http://d.puremagic.com/issues/show_bug.cgi?id=3288 --- Comment #1 from Rob Jacques 2009-09-03 10:04:55 PDT --- Better patch: changing auto u = -cast(Unsigned!S) value; to auto u = -cast(Unsigned!(typeof(value+0))) value; on line 2575; -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3288] New: conv.d : using to with cont int or long fails to compile.
http://d.puremagic.com/issues/show_bug.cgi?id=3288 Summary: conv.d : using to with cont int or long fails to compile. Product: D Version: 2.032 Platform: x86 OS/Version: Windows Status: NEW Keywords: patch Severity: regression Priority: P2 Component: Phobos AssignedTo: nob...@puremagic.com ReportedBy: sandf...@jhu.edu The to!string conversion template doesn't handle const int or long values i.e. const h = 6; string s = to!string(h); // Error This seems to effect text, but not writeln. Patch: change u /= 10; to u = u / 10; inside /// Signed values ($(D int) and $(D long)). T to(T, S)(S value) if (staticIndexOf!(Unqual!S, int, long) >= 0 && isSomeString!T) Line# 2580 in dmd 2.032 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 2469] ICE(cod1.c) arbitrary struct accepted as struct initializer
http://d.puremagic.com/issues/show_bug.cgi?id=2469 --- Comment #9 from Jarrett Billingsley 2009-09-03 09:48:19 PDT --- *** Issue 3287 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 3287] DANGER!! Generating wrong binaries by initializing of between different type structs
http://d.puremagic.com/issues/show_bug.cgi?id=3287 Jarrett Billingsley changed: What|Removed |Added Status|NEW |RESOLVED CC||jarrett.billings...@gmail.c ||om Resolution||DUPLICATE --- Comment #1 from Jarrett Billingsley 2009-09-03 09:48:19 PDT --- *** This issue has been marked as a duplicate of issue 2469 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3132] std.string.split should be templated on mutable/const/immutable
http://d.puremagic.com/issues/show_bug.cgi?id=3132 Andrei Alexandrescu changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution||FIXED --- Comment #5 from Andrei Alexandrescu 2009-09-03 09:14:16 PDT --- (In reply to comment #4) > 1. You missed splitlines. > > 2. string[] words should be S[] words or S1[] words in split(). 3. I'm a chowderhead. I fixed the above and added unittests for all string widths. If there are other functions in std.string to be modified, please open a new bugzilla entry. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3287] New: DANGER!! Generating wrong binaries by initializing of between different type structs
http://d.puremagic.com/issues/show_bug.cgi?id=3287 Summary: DANGER!! Generating wrong binaries by initializing of between different type structs Product: D Version: 2.032 Platform: Other OS/Version: Windows Status: NEW Keywords: accepts-invalid, wrong-code Severity: normal Priority: P1 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: rayerd@gmail.com import std.stdio; struct X { int a; } struct Y { string b; } void main() { Y v = X(1); writeln(v.b); } // DANGER!! crash on running!! -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 259] Comparing signed to unsigned does not generate an error
http://d.puremagic.com/issues/show_bug.cgi?id=259 Don changed: What|Removed |Added CC||clugd...@yahoo.com.au --- Comment #13 from Don 2009-09-03 08:39:48 PDT --- (In reply to comment #12) > This morning I've been tinkering with the DMD source, and I've made an edit to > expression.c that appears to fix this issue. How do I submit? Either create a patch using SVN, and attach it, or just post the lines you changed (Walter doesn't actually use patch files, as far as I can tell). Search for bugs with keyword 'patch' for examples. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 259] Comparing signed to unsigned does not generate an error
http://d.puremagic.com/issues/show_bug.cgi?id=259 Ellery Newcomer changed: What|Removed |Added CC||ellery-newco...@utulsa.edu --- Comment #12 from Ellery Newcomer 2009-09-03 08:33:41 PDT --- This morning I've been tinkering with the DMD source, and I've made an edit to expression.c that appears to fix this issue. How do I submit? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3286] Default parameter prevents solution of inter-module circular dependency
http://d.puremagic.com/issues/show_bug.cgi?id=3286 --- Comment #1 from HOSOKAWA Kenchi 2009-09-03 08:22:24 PDT --- Sorry, this error is NOT a regression between 2.031 and 2.032. This error is occur with 2.031. I found similar error which is a regression between 2.031 and 2.032, and I was confused. Sorry. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3286] New: Default parameter prevents solution of inter-module circular dependency
http://d.puremagic.com/issues/show_bug.cgi?id=3286 Summary: Default parameter prevents solution of inter-module circular dependency Product: D Version: 2.032 Platform: All OS/Version: All Status: NEW Keywords: rejects-valid Severity: major Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: hs...@inter7.jp module a; import b; import c; class A { static __gshared A a; void f(B b) {} void g(C c) {} // <- Error: identifier 'C' is not defined } module b; import a; class B { void f(A x = A.a) {} } module c; import a; class C { void f(A x = A.a) {} } There is no problem if class A, B and C are in the same module. So this dependency is valid and the error is specific for inter-module circular dependency. If default parameter "= A.a" for B.f is removed, it goes well. There is no problem if A.a appeared in the body of B.f. It seems that the compiler tries to recognize the semantics of default parameter A.a when it is reading declaration of B.f. Default parameters are usually hint for the expressions which call the functions with default parameters, this behavior is inexplicable. This error is a regression between 2.031 and 2.032. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3132] std.string.split should be templated on mutable/const/immutable
http://d.puremagic.com/issues/show_bug.cgi?id=3132 David Simcha changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED | --- Comment #4 from David Simcha 2009-09-03 07:56:25 PDT --- 1. You missed splitlines. 2. string[] words should be S[] words or S1[] words in split(). -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 102] Forward reference nested class wheel.
http://d.puremagic.com/issues/show_bug.cgi?id=102 --- Comment #5 from Don 2009-09-03 06:49:57 PDT --- This is the slightly reduced test case that still fails. It only needs one file. class X { Y.NY t; enum NX { BLA, BLA1 } } class Y { enum NY { FOO, BAR } X.NX nx; } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3285] New: Struct's destructor not called
http://d.puremagic.com/issues/show_bug.cgi?id=3285 Summary: Struct's destructor not called Product: D Version: 2.032 Platform: All OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: yaocheng...@gmail.com import std.stdio; struct S { ~this() { writefln("die!"); } void fun(){} } S fun() { return S(); } int main(char[][] args) { fun().fun(); ... return 0; } Struct's destructor not called . -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3283] glue.c assertion with no info
http://d.puremagic.com/issues/show_bug.cgi?id=3283 --- Comment #3 from Alvaro 2009-09-03 04:49:16 PDT --- Ok thanks for your tips! The task doesn't seem obvious, as I get a huge list of functions, but at least I get something to work with. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3283] glue.c assertion with no info
http://d.puremagic.com/issues/show_bug.cgi?id=3283 Don changed: What|Removed |Added CC||clugd...@yahoo.com.au --- Comment #2 from Don 2009-09-03 04:04:09 PDT --- Compile with -v, to get an idea of where it is happening. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3283] glue.c assertion with no info
http://d.puremagic.com/issues/show_bug.cgi?id=3283 Lars T. Kyllingstad changed: What|Removed |Added CC||bugzi...@kyllingen.net --- Comment #1 from Lars T. Kyllingstad 2009-09-03 03:27:57 PDT --- I had a very similar problem porting some of my old code from D1 to D2. You should check out bug 2962. It's probably related, if not the same. Perhaps some of the comments in there will help you narrow it down. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3284] New: snn linked programs never release memory back to the OS
http://d.puremagic.com/issues/show_bug.cgi?id=3284 Summary: snn linked programs never release memory back to the OS Product: D Version: 1.046 Platform: All OS/Version: Windows Status: NEW Severity: blocker Priority: P1 Component: Phobos AssignedTo: nob...@puremagic.com ReportedBy: domi...@vga.hr Programs using GC or manual malloc/free never actually release memory back to the OS (Windows), which causes programs with heavy memory allocation / deallocation to utilize page swaps heavily and eventually crash. This is a blocking issue persistent in 1.047 release also (it was not available in version selection). You can trivially reproduce this effect by malloc'ing several MB's and subsequently freeing them - watch the process memory usage before and after it. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3283] New: glue.c assertion with no info
http://d.puremagic.com/issues/show_bug.cgi?id=3283 Summary: glue.c assertion with no info Product: D Version: 2.032 Platform: Other OS/Version: Linux Status: NEW Severity: critical Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: alvcas...@yahoo.es I got this error when trying to port Hybrid library to D2: dmd2.bin: glue.c:626: virtual void FuncDeclaration::toObjFile(int): Assertion `!vthis->csym' failed. I got it with 2.031, and now also with 2.032. Is virtually impossible to figure out which part of my code/the old library code is failing to assert, it could be anywhere. That is the only info output by the compiler. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3282] New: The overload and override issue of const/immutable member functions
http://d.puremagic.com/issues/show_bug.cgi?id=3282 Summary: The overload and override issue of const/immutable member functions Product: D Version: 2.031 Platform: Other OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: rayerd@gmail.com import std.stdio; class Base { string f() { return "Base.f()"; } } class Derived : Base { string f() { return "Derived.f()"; } string f() const // or immutable { return "Derived.f() const"; } } void main() { auto x = new Base; writeln(x.f()); auto y = new Derived; writeln(y.f()); auto z = new const(Derived); // or immutable writeln(z.f()); //object.Error: Access Violation } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 102] Forward reference nested class wheel.
http://d.puremagic.com/issues/show_bug.cgi?id=102 Don changed: What|Removed |Added CC||clugd...@yahoo.com.au --- Comment #4 from Don 2009-09-03 00:53:52 PDT --- The original bug, and also the test case in bug 912, were fixed after 1.041 and before 1.047. They work in D2 as well. Only the 'enum' case in comment 2 remains unfixed! -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 2437] ICE(tocsym.c, !needThis()) - default struct argument
http://d.puremagic.com/issues/show_bug.cgi?id=2437 Don changed: What|Removed |Added Keywords|patch | --- Comment #3 from Don 2009-09-03 00:28:53 PDT --- Aargh, patch is incorrect. I think the patch does fix a genuine problem (it seems to be necessary to allow you to evaluate a struct constructor in CTFE), but there's a second problem as well. It may be because a struct constructor such as aStruct(44) turns into ((aStruct __ctmp2;) , __ctmp2).this(44) And that __ctmp2 is a funny beast. Where is it stored? Its parent is the *MODULE*, not the function it's called from. But it's not a static variable. Weird. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 2935] ICE(out.c) using struct with constructor as function default argument
http://d.puremagic.com/issues/show_bug.cgi?id=2935 Don changed: What|Removed |Added Keywords|patch | --- Comment #2 from Don 2009-09-03 00:29:40 PDT --- Not patched yet, see bug 2437 for details. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 2998] ICE(expression.c) with floating point enum
http://d.puremagic.com/issues/show_bug.cgi?id=2998 Don changed: What|Removed |Added Attachment #443 is|0 |1 obsolete|| --- Comment #3 from Don 2009-09-03 00:05:58 PDT --- Created an attachment (id=444) --> (http://d.puremagic.com/issues/attachment.cgi?id=444) enum.c for DMD2.032 Revised enum.c. The version I posted was incorrect, and failed one of the test suite tests. This version passes. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---