[Issue 10946] New: Integer constant expression expected instead of...
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Sep 1 18:48:58 PDT 2013
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 at puremagic.com
ReportedBy: rtcvb32 at yahoo.com
--- Comment #0 from Era Scarecrow <rtcvb32 at yahoo.com> 2013-09-01 18:48:57 PDT ---
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: -------
More information about the Digitalmars-d-bugs
mailing list