digitalmars.D.bugs - [Issue 10946] New: Integer constant expression expected instead of...
- d-bugmail puremagic.com (32/32) Sep 01 2013 http://d.puremagic.com/issues/show_bug.cgi?id=10946
- d-bugmail puremagic.com (13/13) Sep 01 2013 http://d.puremagic.com/issues/show_bug.cgi?id=10946
- d-bugmail puremagic.com (11/11) Sep 01 2013 http://d.puremagic.com/issues/show_bug.cgi?id=10946
- d-bugmail puremagic.com (10/10) Sep 01 2013 http://d.puremagic.com/issues/show_bug.cgi?id=10946
http://d.puremagic.com/issues/show_bug.cgi?id=10946 Summary: Integer constant expression expected instead of... Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: regression Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: rtcvb32 yahoo.com --- Known immutable named expression/variable not being accepted when it should be. Version: DMD32 D Compiler v2.063.2 enum len = 4; alias e1 = immutable(char)[len]; alias e2 = immutable(char[len]); //fails, line 9 alias immutable(char)[len] e3; alias immutable(char[len]) e4; //fails, line 11 immutable ilen = 4; alias i1 = immutable(char)[ilen]; alias i2 = immutable(char[ilen]); //fails, line 15 alias immutable(char)[ilen] i3; alias immutable(char[ilen]) i4; //fails, line 17 test.d(9): Error: Integer constant expression expected instead of len test.d(11): Error: Integer constant expression expected instead of len test.d(15): Error: Integer constant expression expected instead of ilen test.d(17): Error: Integer constant expression expected instead of ilen -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 01 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10946 Kenji Hara <k.hara.pg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull, rejects-valid That's a regression from 2.061, caused by the commit: https://github.com/D-Programming-Language/dmd/commit/8c5610c3f1f3cdd5d263997230352e9991ce82a7 Compiler fix: https://github.com/D-Programming-Language/dmd/pull/2512 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 01 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10946 Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/2a6e30fb5366310965abbc05e311849611cfcc70 [REG2.061] Issue 10946 - Integer constant expression expected instead of... https://github.com/D-Programming-Language/dmd/commit/8755c697f44933db35d98dd9b49dbc48a413c066 [REG2.061] Issue 10946 - Integer constant expression expected instead of... -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 01 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10946 Walter Bright <bugzilla digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla digitalmars.com Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 01 2013