http://d.puremagic.com/issues/show_bug.cgi?id=4066


Denis Derman <denis.s...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |denis.s...@gmail.com


--- Comment #2 from Denis Derman <denis.s...@gmail.com> 2010-11-28 10:04:51 PST 
---
A use case, where issue happens with 'static' instead of 'enum:

enum string[string] escapeCodes = ["\n":"\\n", "\t":"\\t"]; // and many more
string escape(string s0) {
    auto s1 = s0;
    foreach (c,s ; escapeCodes)
        s1 = s1.replace(c,s);
    return s1;
}
==>
Internal error: e2ir.c 4629

Only tried to use this because it seems impossible to have a func-static AA:
__trials__.d(16): Error: non-constant expression ["\x0a":"\\n","\x09":"\\t"]

Denis

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to