[Issue 2773] ICE(go.c) array assignment through a pointer, only with -O.

2009-10-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2773 --- Comment #7 from Don clugd...@yahoo.com.au 2009-10-05 03:12:06 PDT --- Even simpler test case, this one fails on both D1.033 and 1.048. int[4]* get(){ return null; } void main() { int[4]* p = get(); (*p)[] = 0; (*p)[] = 0; } --

[Issue 3356] Make pure functions require immutable parameters

2009-10-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3356 --- Comment #4 from Sobirari Muhomori dfj1es...@sneakemail.com 2009-10-05 04:19:45 PDT --- It's hard to check actual immutability of reference type without formal immutability. This is the very reason why formal immutability exists. --

[Issue 3356] Make pure functions require immutable parameters

2009-10-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3356 --- Comment #5 from Sobirari Muhomori dfj1es...@sneakemail.com 2009-10-05 04:28:04 PDT --- Well, I must agree, your scheme works if programmer bothered to mark shared data properly. -- Configure issuemail:

[Issue 3356] Make pure functions require immutable parameters

2009-10-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3356 --- Comment #6 from Don clugd...@yahoo.com.au 2009-10-05 04:57:26 PDT --- (In reply to comment #5) Well, I must agree, your scheme works if programmer bothered to mark shared data properly. It's still guaranteed that pure functions cannot

[Issue 3364] New: module with unittest forces entire import chain

2009-10-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3364 Summary: module with unittest forces entire import chain Product: D Version: 2.032 Platform: x86 OS/Version: Windows Status: NEW Severity: normal Priority: P2

[Issue 3364] module with unittest forces entire import chain

2009-10-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3364 Sobirari Muhomori dfj1es...@sneakemail.com changed: What|Removed |Added Keywords|

[Issue 3356] Make pure functions require immutable parameters

2009-10-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3356 --- Comment #7 from Sobirari Muhomori dfj1es...@sneakemail.com 2009-10-05 06:19:38 PDT --- For me this compiles: __gshared char[] str; char fun(in char[] s) pure { return s[0]; } int main() { char a=fun(str); return 0; }

[Issue 3356] Make pure functions require immutable parameters

2009-10-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3356 --- Comment #8 from Sobirari Muhomori dfj1es...@sneakemail.com 2009-10-05 06:22:45 PDT --- BTW, in the latest DMD, toLower(), toUpper() now take const(char)[] parameters, instead of immutable. Under your scheme, they could not be marked as

[Issue 3356] Make pure functions require immutable parameters

2009-10-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3356 --- Comment #9 from Sobirari Muhomori dfj1es...@sneakemail.com 2009-10-05 06:41:16 PDT --- Note that you can just look at the parameter list and distinguish levels of purity: if there are any non-immutable reference parameters, it's not

[Issue 3356] Make pure functions require immutable parameters

2009-10-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3356 --- Comment #10 from Don clugd...@yahoo.com.au 2009-10-05 07:11:21 PDT --- (In reply to comment #7) For me this compiles: __gshared char[] str; char fun(in char[] s) pure { return s[0]; } int main() { char a=fun(str);

[Issue 3365] New: Safe casts: type modifiers

2009-10-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3365 Summary: Safe casts: type modifiers Product: D Version: future Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: DMD

[Issue 3097] Error at contract block + wierd error at struct template declaration

2009-10-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3097 --- Comment #2 from The Anh Tran trthea...@yahoo.com 2009-10-05 07:53:12 PDT --- I've re-tested with dmd v2.033: the bug disappeared. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving

[Issue 3356] Make pure functions require immutable parameters

2009-10-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3356 --- Comment #11 from Sobirari Muhomori dfj1es...@sneakemail.com 2009-10-05 07:54:07 PDT --- Ouch. That definitely shouldn't compile. Obviously 'pure' isn't doing any parameter checking at all. The parameter isn't even const!! It's const. I

[Issue 3334] std.demangle doesn't parse ref, pure, nothrow

2009-10-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3334 --- Comment #3 from Lutger lutger.blijdest...@gmail.com 2009-10-05 10:32:14 PDT --- (In reply to comment #2) (In reply to comment #0) I didn't know how property is supposed to be demangled, so that one is just ignored. Congratulations,

[Issue 3347] std.stdio.writeln attempts to print illegal unicode characters

2009-10-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3347 --- Comment #4 from Walter Bright bugzi...@digitalmars.com 2009-10-05 15:05:51 PDT --- Yeah, I think it would probably be a mistake for writeln to throw. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ---

[Issue 3352] RangeError in std.conv

2009-10-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3352 Andrei Alexandrescu and...@metalanguage.com changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[Issue 3367] New: Regression: assignment at declaration no longer supports opAssign or ctor overloads

2009-10-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3367 Summary: Regression: assignment at declaration no longer supports opAssign or ctor overloads Product: D Version: 2.033 Platform: x86 OS/Version: Windows Status:

[Issue 2935] ICE(out.c) using struct with constructor as function default argument

2009-10-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2935 Rob Jacques sandf...@jhu.edu changed: What|Removed |Added CC||sandf...@jhu.edu ---

[Issue 2437] ICE(tocsym.c, !needThis()) - default struct argument

2009-10-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2437 Rob Jacques sandf...@jhu.edu changed: What|Removed |Added CC||sandf...@jhu.edu ---

[Issue 2992] std.typecons has unnecessary thread local globals

2009-10-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2992 HOSOKAWA Kenchi hs...@inter7.jp changed: What|Removed |Added CC||hs...@inter7.jp ---