[Issue 8201] New: Conversion from dynamic array to static array fails when static array is immutable
http://d.puremagic.com/issues/show_bug.cgi?id=8201 Summary: Conversion from dynamic array to static array fails when static array is immutable Product: D Version: unspecified Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: jmdavisp...@gmx.com --- Comment #0 from Jonathan M Davis jmdavisp...@gmx.com 2012-06-05 23:38:34 PDT --- void main() { ubyte[] buffer = [0, 1, 2, 3, 4, 5]; ubyte[4] arr = buffer[0 .. 4]; //Compiles const ubyte[4] cArr = buffer[0 .. 4]; //Compiles immutable ubyte[4] iArr = buffer[0 .. 4]; //Fails to compile } I see no reason that the line with the immutable static array should fail to compile when the mutable and const ones succeed. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 8202] New: Templated function with multiple parameters fails to compile with only one argument if type is not exact
http://d.puremagic.com/issues/show_bug.cgi?id=8202 Summary: Templated function with multiple parameters fails to compile with only one argument if type is not exact Product: D Version: unspecified Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: jmdavisp...@gmx.com --- Comment #0 from Jonathan M Davis jmdavisp...@gmx.com 2012-06-06 00:58:39 PDT --- This code void func(T, R)(R range, T value) { } void main() { ubyte[] buffer = [0, 1, 2]; buffer.func!ushort(915); } fails to compile, giving q.d(8): Error: template q.func does not match any function template declaration q.d(1): Error: template q.func(T,R) cannot deduce template function from argument types !(ushort)(ubyte[],int) q.d(8): Error: template instance func!(ushort) errors instantiating template If I change the function call to either buffer.func!(ushort, ubyte[])(915); or buffer.func!ushort(cast(ushort)915); then it compiles. It will also compile if you change it to void func(R, T)(R range, T value) { } void main() { ubyte[] buffer = [0, 1, 2]; buffer.func!(ubyte[])(915); } But for some reason, the compiler cannot handle having just one of the two template parameters given when the function argument associated with the given template parameter is not an exact match. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 4414] ICE(cgcs.c) Taking item of static array returned by function
http://d.puremagic.com/issues/show_bug.cgi?id=4414 Jonathan M Davis jmdavisp...@gmx.com changed: What|Removed |Added CC||jmdavisp...@gmx.com Severity|normal |critical --- Comment #7 from Jonathan M Davis jmdavisp...@gmx.com 2012-06-06 01:21:52 PDT --- Still fails on pre-2.060 HEAD with Internal error: backend/cgcs.c 343 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 6329] Out of range exceptions not thrown in certain cases
http://d.puremagic.com/issues/show_bug.cgi?id=6329 --- Comment #14 from SomeDude lovelyd...@mailmetrash.com 2012-06-06 02:43:34 PDT --- On 2.059 Windows and Linux 32 bit, the problem seems solved. However the (No error) message is uninformative. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 6329] Out of range exceptions not thrown in certain cases
http://d.puremagic.com/issues/show_bug.cgi?id=6329 --- Comment #15 from Andrej Mitrovic andrej.mitrov...@gmail.com 2012-06-06 04:21:49 PDT --- (In reply to comment #13) The problem seems solved with 2.059 Win32. I can see the errors with or without -g. I don't think it's solved, the dirEntries function was changed between releases so now it doesn't trigger the bug. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 8202] Templated function with multiple parameters fails to compile with only one argument if type is not exact
http://d.puremagic.com/issues/show_bug.cgi?id=8202 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution||DUPLICATE --- Comment #1 from Kenji Hara k.hara...@gmail.com 2012-06-06 04:25:11 PDT --- *** This issue has been marked as a duplicate of issue 8129 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 8129] Cannot deduce template function when inferring labmda parameters over partially specialized IFTI call.
http://d.puremagic.com/issues/show_bug.cgi?id=8129 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added CC||jmdavisp...@gmx.com --- Comment #2 from Kenji Hara k.hara...@gmail.com 2012-06-06 04:25:11 PDT --- *** Issue 8202 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 8129] Cannot deduce template function when using partially specified type in function parameter
http://d.puremagic.com/issues/show_bug.cgi?id=8129 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||pull --- Comment #4 from Kenji Hara k.hara...@gmail.com 2012-06-06 04:43:16 PDT --- https://github.com/D-Programming-Language/dmd/pull/983 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3159] Can't access member variables from templated nested member function
http://d.puremagic.com/issues/show_bug.cgi?id=3159 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Comment #1 from Kenji Hara k.hara...@gmail.com 2012-06-06 05:00:45 PDT --- Works in 2.060head. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 8203] Use of std.regex.match() generates not enough preallocated memory error
http://d.puremagic.com/issues/show_bug.cgi?id=8203 --- Comment #1 from phshaf...@gmail.com 2012-06-06 05:17:42 PDT --- Created an attachment (id=) File to Compare -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 8203] New: Use of std.regex.match() generates not enough preallocated memory error
http://d.puremagic.com/issues/show_bug.cgi?id=8203 Summary: Use of std.regex.match() generates not enough preallocated memory error Product: D Version: D2 Platform: x86_64 OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nob...@puremagic.com ReportedBy: phshaf...@gmail.com --- Comment #0 from phshaf...@gmail.com 2012-06-06 05:16:26 PDT --- Created an attachment (id=1110) File to Compare -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 8203] Use of std.regex.match() generates not enough preallocated memory error
http://d.puremagic.com/issues/show_bug.cgi?id=8203 --- Comment #2 from phshaf...@gmail.com 2012-06-06 05:21:26 PDT --- Created an attachment (id=1112) Source File -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 8203] Use of std.regex.match() generates not enough preallocated memory error
http://d.puremagic.com/issues/show_bug.cgi?id=8203 --- Comment #3 from phshaf...@gmail.com 2012-06-06 05:23:23 PDT --- Created an attachment (id=1113) Console Screenshot with Error Showing -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 8203] Use of std.regex.match() generates not enough preallocated memory error
http://d.puremagic.com/issues/show_bug.cgi?id=8203 --- Comment #4 from phshaf...@gmail.com 2012-06-06 05:43:36 PDT --- Dmitry Olshansky recommended I submit this as a bug. The program is executed as : icomp2 fold.txt fnew.txt It should search fold.txt for certain text patterns and then see if all found text also appears in fnew.txt. Fold.txt and Fnew.txt are identical so all found text should appeart in Fnew.txt as well. I added some diagnostic loops counters for troubleshooting: writeln(cntOld, ,cntNew, ,matchOld.hit, ,matchNew.hit); As the screenshot shows after several iterations, it crashes with - core.exception.AssertError@C:\D\dmd2\windows\bin\..\..\src\phobos\std\regex.d(60 50): not enough preallocated memory -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 8188] need this to access member when mixining in a function
http://d.puremagic.com/issues/show_bug.cgi?id=8188 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||pull, rejects-valid --- Comment #1 from Kenji Hara k.hara...@gmail.com 2012-06-06 05:40:54 PDT --- https://github.com/D-Programming-Language/dmd/pull/984 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 8190] Externally defined struct error message
http://d.puremagic.com/issues/show_bug.cgi?id=8190 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||pull --- Comment #1 from Kenji Hara k.hara...@gmail.com 2012-06-06 06:05:20 PDT --- https://github.com/D-Programming-Language/dmd/pull/985 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 8203] Use of std.regex.match() generates not enough preallocated memory error
http://d.puremagic.com/issues/show_bug.cgi?id=8203 Dmitry Olshansky dmitry.o...@gmail.com changed: What|Removed |Added CC||dmitry.o...@gmail.com --- Comment #5 from Dmitry Olshansky dmitry.o...@gmail.com 2012-06-06 06:13:01 PDT --- (In reply to comment #4) Dmitry Olshansky recommended I submit this as a bug. Yup, case I'm the only one to fix it, at least in near future ;) The program is executed as : icomp2 fold.txt fnew.txt It should search fold.txt for certain text patterns and then see if all found text also appears in fnew.txt. Fold.txt and Fnew.txt are identical so all found text should appeart in Fnew.txt as well. I added some diagnostic loops counters for troubleshooting: writeln(cntOld, ,cntNew, ,matchOld.hit, ,matchNew.hit); As the screenshot shows after several iterations, it crashes with - core.exception.AssertError@C:\D\dmd2\windows\bin\..\..\src\phobos\std\regex.d(60 50): not enough preallocated memory Thanks, I'm on it. We'd better get fixed it in 2.060. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3282] The overload and override issue of const/immutable member functions
http://d.puremagic.com/issues/show_bug.cgi?id=3282 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution||FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 4967] member default initializers not working in static struct initializers
http://d.puremagic.com/issues/show_bug.cgi?id=4967 Andrej Mitrovic andrej.mitrov...@gmail.com changed: What|Removed |Added CC||andrej.mitrov...@gmail.com --- Comment #9 from Andrej Mitrovic andrej.mitrov...@gmail.com 2012-06-06 20:29:02 PDT --- I think Issue 2485 is a dup of this. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 8204] New: Alias causes error: auto can only be used for template function parameters
http://d.puremagic.com/issues/show_bug.cgi?id=8204 Summary: Alias causes error: auto can only be used for template function parameters Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: wfunct...@hotmail.com --- Comment #0 from wfunct...@hotmail.com 2012-06-06 22:59:58 PDT --- void foo(T)(ref auto T v) { } alias foo!int bar; // Error: auto can only be used for template function parameters While I understand this may be 'correct' in some sense, it makes templates a lot more difficult to use. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---