[Issue 5941] Using inner struct which references nested function in a no-attribute or auto-return member function causes "nested function cannot be accessed" error

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat May 7 00:31:33 PDT 2011


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



--- Comment #1 from kennytm at gmail.com 2011-05-07 00:27:39 PDT ---
A slight variant is when 'f' is a template function taking a delegate literal
as input, it will generate an ICE:

---------------------------------
auto f(alias T)() {
    static void h(){}
    struct S {
        void get() {
            h();
        }
    }
    return S();
}
void main() {
    typeof(f!((){})()) z;
}
---------------------------------
Internal error: backend/cgcs.c 363
---------------------------------

-- 
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