Thread overview | |||||
---|---|---|---|---|---|
|
March 28, 2010 [Issue 4022] New: [CTFE] AA get | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=4022 Summary: [CTFE] AA get Product: D Version: future Platform: x86 OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: bearophile_hugs@eml.cc --- Comment #0 from bearophile_hugs@eml.cc 2010-03-28 06:40:18 PDT --- This program, compiled with dmd 2.042: int foo() { int[int] aa = [1: 1]; int r = aa.get(1, 1000); return 1; } enum _ = foo(); void main() {} Generates the errors: ...\dmd\src\druntime\import\object.di(366): Error: Cannot interpret key in *cast(int[int]*)&this.p at compile time test.d(5): Error: cannot evaluate aa.get(1,delegate int() { return 1000; } ) at compile time test.d(8): Error: cannot evaluate foo() at compile time test.d(8): Error: cannot evaluate foo() at compile time -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
October 06, 2011 [Issue 4022] [CTFE] AA get | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=4022 Don <clugdbug@yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|D1 & D2 |D2 --- Comment #1 from Don <clugdbug@yahoo.com.au> 2011-10-06 03:54:59 PDT --- This is D2-only. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
October 07, 2011 [Issue 4022] [CTFE] AA get | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=4022 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla@digitalmars.com Resolution| |FIXED --- Comment #2 from Walter Bright <bugzilla@digitalmars.com> 2011-10-06 23:30:28 PDT --- https://github.com/D-Programming-Language/dmd/commit/61ea0ca9cc8a0220830318bc1b66f0788db65818 https://github.com/D-Programming-Language/dmd/commit/c9bdc18bd85a0b2b5f3b2dc741b45c739e611c5a -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation