[Issue 4021] New: [CTFE] AA rehash
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Mar 28 06:37:44 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4021
Summary: [CTFE] AA rehash
Product: D
Version: future
Platform: x86
OS/Version: Windows
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at eml.cc 2010-03-28 06:37:43 PDT ---
This program, with dmd 2.042:
int foo() {
int[int] aa = [1: 1];
aa.rehash;
return 1;
}
enum _ = foo();
void main() {}
Generates the errors:
...\dmd\src\druntime\import\object.di(318): Error: cannot evaluate
_aaRehash(&this.p,(& D12TypeInfo_Hii6__initZ)) at compile time
test.d(3): Error: cannot evaluate aa.rehash() at compile time
test.d(6): Error: cannot evaluate foo() at compile time
test.d(6): Error: cannot evaluate foo() at compile time
--
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