[Issue 4193] Regression 2.046, ICE(expression.c)
http://d.puremagic.com/issues/show_bug.cgi?id=4193 Don changed: What|Removed |Added Keywords||ice-on-valid-code CC||clugd...@yahoo.com.au Summary|2.046: assertion failure|Regression 2.046, ||ICE(expression.c) Severity|normal |regression -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 2276] Error message missing line number on array operation
http://d.puremagic.com/issues/show_bug.cgi?id=2276 Don changed: What|Removed |Added Keywords||patch --- Comment #2 from Don 2010-05-18 00:12:06 PDT --- Arrays ops still need more work, but this patch at least gives reasonable error messages for everything it cannot handle, rather than generating errors on compiler-generated code. This also fixes bug 3548, which is largely the same as this one. PATCH: arrayop.c. Expression *BinExp::arrayOp(Scope *sc) { //printf("BinExp::arrayOp() %s\n", toChars()); if (type->toBasetype()->nextOf()->toBasetype()->ty == Tvoid) { error("Cannot perform array operations on void[] arrays"); return new ErrorExp(); } +if (!isArrayOpValid(e2)) +{ +e2->error("invalid array operation %s (did you forget a [] ?)", toChars()); +return new ErrorExp(); +} and add the following function to the top of that file. // Check that there are no uses of arrays without []. bool isArrayOpValid(Expression *e) { if (e->op == TOKslice) return true; Type *tb = e->type->toBasetype(); if ( (tb->ty == Tarray) || (tb->ty == Tsarray) ) { switch (e->op) { case TOKadd: case TOKmin: case TOKmul: case TOKdiv: case TOKmod: case TOKxor: case TOKand: case TOKor: case TOKpow: return isArrayOpValid(((BinExp *)e)->e1) && isArrayOpValid(((BinExp *)e)->e2); case TOKcall: return false; // TODO: Decide if [] is required after arrayop calls. case TOKneg: case TOKtilde: return isArrayOpValid(((UnaExp *)e)->e1); default: return false; } } return true; } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3753] ICE eh.c 49: Related to exception handling and alloca.
http://d.puremagic.com/issues/show_bug.cgi?id=3753 --- Comment #3 from Don 2010-05-18 00:18:01 PDT --- I'm including this test case from bug 4054, so that I can close it, as it is clearly another instance of the same bug. --- import core.stdc.stdlib : alloca; class A { } void b() { scope a = new A; int l; alloca(l); goto L1; L1: ; } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 4054] ICE(eh.c) line 49
http://d.puremagic.com/issues/show_bug.cgi?id=4054 Don changed: What|Removed |Added Status|NEW |RESOLVED Resolution||DUPLICATE --- Comment #3 from Don 2010-05-18 00:18:41 PDT --- Test case moved to bug 3753, which is clearly the same bug. *** This issue has been marked as a duplicate of issue 3753 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3753] ICE eh.c 49: Related to exception handling and alloca.
http://d.puremagic.com/issues/show_bug.cgi?id=3753 Don changed: What|Removed |Added CC||rob...@octarineparrot.com --- Comment #4 from Don 2010-05-18 00:18:41 PDT --- *** Issue 4054 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 3548] ICE occurs when an array is returned from a function is incorrectly used in an array op expression.
http://d.puremagic.com/issues/show_bug.cgi?id=3548 Don changed: What|Removed |Added Keywords||patch CC||clugd...@yahoo.com.au --- Comment #1 from Don 2010-05-18 00:23:53 PDT --- The patch for bug 2276 fixes this. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 2716] Confusion of auto and scope as the class attribute
http://d.puremagic.com/issues/show_bug.cgi?id=2716 Brad Roberts changed: What|Removed |Added Attachment #421 is|0 |1 obsolete|| --- Comment #15 from Brad Roberts 2010-05-18 00:36:52 PDT --- Created an attachment (id=636) Update previous patch to tip of svn I've updated this diff to the the current tip of svn 493. I altered the error messages to point suggest that the user probably wants to use the scope storage class when it finds the deprecated use of auto. I've also run this through the dmd test suite (which needs some corresponding changes that I'll send to Walter privately). -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 1961] Allow "scoped const" contracts
http://d.puremagic.com/issues/show_bug.cgi?id=1961 Steven Schveighoffer changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Comment #19 from Steven Schveighoffer 2010-05-18 03:47:59 PDT --- Closing this, the feature implementation will be tracked via bug 3748 as a bug instead of an enhancement. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 4203] New: Const field of struct that contains a whole struct
http://d.puremagic.com/issues/show_bug.cgi?id=4203 Summary: Const field of struct that contains a whole struct Product: D Version: future Platform: x86 OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: bearophile_h...@eml.cc --- Comment #0 from bearophile_h...@eml.cc 2010-05-18 04:08:11 PDT --- I don't understand what's going on here, but even if this is not a bug (and to me it looks like a problem) it's too much tricky for D newbies. This runs with dmd v2.046: // case 1 struct Foo { const Foo f = Foo(); } static assert(Foo.sizeof == 1); void main() {} While this is not OK: // case 2 struct Foo { const Foo f; } static assert(Foo.sizeof == 1); void main() {} dmd v2.046 prints: test.d(2): Error: struct test.Foo cannot have field f with same struct type test.d(2): Error: struct test.Foo cannot have field f with same struct type -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 4202] Changset 1517 doesn't compile.
http://d.puremagic.com/issues/show_bug.cgi?id=4202 Masahiro Nakagawa changed: What|Removed |Added CC||repeate...@gmail.com --- Comment #1 from Masahiro Nakagawa 2010-05-18 04:48:57 PDT --- changeset 1522 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 2610] const/invariant(immutable) class don't have constructor
http://d.puremagic.com/issues/show_bug.cgi?id=2610 Haruki Shigemori changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3145] std.perf documentation is generated, but there's no link to it from the side index
http://d.puremagic.com/issues/show_bug.cgi?id=3145 st...@despam.it changed: What|Removed |Added CC||st...@despam.it --- Comment #1 from st...@despam.it 2010-05-18 08:31:04 PDT --- And, http://www.digitalmars.com/d/1.0/phobos/std_perf.html does not exist. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 2610] const/invariant(immutable) class don't have constructor
http://d.puremagic.com/issues/show_bug.cgi?id=2610 nfx...@gmail.com changed: What|Removed |Added CC||nfx...@gmail.com --- Comment #1 from nfx...@gmail.com 2010-05-18 11:22:08 PDT --- You closed this bug as fixed, but what was the resolution? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 2610] const/invariant(immutable) class don't have constructor
http://d.puremagic.com/issues/show_bug.cgi?id=2610 bearophile_h...@eml.cc changed: What|Removed |Added CC||bearophile_h...@eml.cc --- Comment #2 from bearophile_h...@eml.cc 2010-05-18 11:53:01 PDT --- This code compiles and runs fine on dmd v.2.046. immutable class A { string s; this() { s = "hoge"; } } void main() { A a = new A; } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 461] Constant not understood to be constant when circular module dependency exists.
http://d.puremagic.com/issues/show_bug.cgi?id=461 Don changed: What|Removed |Added Status|NEW |RESOLVED CC||clugd...@yahoo.com.au Resolution||FIXED --- Comment #4 from Don 2010-05-18 12:14:42 PDT --- Fixed DMD1.061 and DMD2.046. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 945] template forward reference with named nested struct only
http://d.puremagic.com/issues/show_bug.cgi?id=945 Don changed: What|Removed |Added Status|NEW |RESOLVED CC||clugd...@yahoo.com.au Resolution||FIXED --- Comment #8 from Don 2010-05-18 12:15:17 PDT --- Fixed DMD1.061 and DMD2.046. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 1055] union forward reference "overlapping initialization" error
http://d.puremagic.com/issues/show_bug.cgi?id=1055 Don changed: What|Removed |Added Status|NEW |RESOLVED CC||clugd...@yahoo.com.au Resolution||FIXED --- Comment #7 from Don 2010-05-18 12:16:02 PDT --- Fixed DMD1.061 and DMD2.046. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3945] AssertExpression message should implicitly convert to const char[]
http://d.puremagic.com/issues/show_bug.cgi?id=3945 Don changed: What|Removed |Added Status|NEW |RESOLVED CC||clugd...@yahoo.com.au Resolution||FIXED --- Comment #2 from Don 2010-05-18 12:17:06 PDT --- FixedDMD2.046. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 4042] Unable to instantiate a struct template.
http://d.puremagic.com/issues/show_bug.cgi?id=4042 Don changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Comment #9 from Don 2010-05-18 12:18:38 PDT --- FixedDMD2.046. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 4100] Break and continue to label should mention foreach
http://d.puremagic.com/issues/show_bug.cgi?id=4100 Don changed: What|Removed |Added Status|NEW |RESOLVED CC||clugd...@yahoo.com.au Resolution||FIXED --- Comment #4 from Don 2010-05-18 12:18:59 PDT --- Fixed DMD1.061 and DMD2.046. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 4016] const initializer cannot forward reference other const initializer
http://d.puremagic.com/issues/show_bug.cgi?id=4016 Don changed: What|Removed |Added Status|NEW |RESOLVED CC||clugd...@yahoo.com.au Resolution||FIXED --- Comment #2 from Don 2010-05-18 12:17:54 PDT --- Fixed DMD2.046. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 4146] Unavailable: core.sys.posix.sys.wait.waitid()
http://d.puremagic.com/issues/show_bug.cgi?id=4146 Don changed: What|Removed |Added Status|NEW |RESOLVED CC||clugd...@yahoo.com.au Resolution||FIXED --- Comment #2 from Don 2010-05-18 12:19:52 PDT --- Fixed DMD2.046. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 4116] object.di does not match object_.d
http://d.puremagic.com/issues/show_bug.cgi?id=4116 Don changed: What|Removed |Added Status|NEW |RESOLVED CC||clugd...@yahoo.com.au Resolution||FIXED --- Comment #1 from Don 2010-05-18 12:19:21 PDT --- Fixed DMD1.061 and DMD2.046. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 4204] New: Wrong directory delimiters in all.sh
http://d.puremagic.com/issues/show_bug.cgi?id=4204 Summary: Wrong directory delimiters in all.sh Product: D Version: 1.057 Platform: Other OS/Version: Mac OS X Status: NEW Severity: minor Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: simen.kja...@gmail.com --- Comment #0 from Simen Kjaeraas 2010-05-18 14:14:24 PDT --- Line 5 of DMD/samples/d/all.sh: DMD=\dmd\bin\dmd Should be: DMD=/dmd/bin/dmd -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 4205] New: Strange error message when trying to call unknown method on string
http://d.puremagic.com/issues/show_bug.cgi?id=4205 Summary: Strange error message when trying to call unknown method on string Product: D Version: unspecified Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: luk.wrzo...@gmail.com --- Comment #0 from Lukasz Wrzosek 2010-05-18 15:52:27 PDT --- //= module fooo; class C { } void main(string[] args) { int i = 10; string str = "123"; C c = new C; i.toHash(); //tmp.d(13): Error: no property 'toHash' for type 'int' i.someFunc();//tmp.d(14): Error: no property 'someFunc' for type 'int' c.toHash(); c.someFunc();//tmp.d(17): Error: no property 'someFunc' for type 'fooo.C' str.toHash();//tmp.d(19): Error: undefined identifier module fooo.toHash str.someFunc(); //tmp.d(20): Error: undefined identifier module fooo.someFunc } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3332] Mixin a constructor with a construct already present fails
http://d.puremagic.com/issues/show_bug.cgi?id=3332 st...@despam.it changed: What|Removed |Added CC||st...@despam.it --- Comment #1 from st...@despam.it 2010-05-18 15:53:06 PDT --- This one bit me as well today :( Windows D1.061 Hack: renamed all constructors within the mixin to ctor. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 2610] const/invariant(immutable) class don't have constructor
http://d.puremagic.com/issues/show_bug.cgi?id=2610 --- Comment #3 from Haruki Shigemori 2010-05-18 19:59:09 PDT --- (In reply to comment #1) > You closed this bug as fixed, but what was the resolution? Sorry. I should have written a reason. (In reply to comment #2) > This code compiles and runs fine on dmd v.2.046. > > immutable class A { > string s; > this() { > s = "hoge"; > } > } > void main() { > A a = new A; > } Thanks! -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---