[Issue 5499] ICE(toir.c): delegate as alias template parameter, only with -inline

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu May 3 04:35:21 PDT 2012


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



--- Comment #7 from Leandro Lucarella <leandro.lucarella at sociomantic.com> 2012-05-03 04:36:34 PDT ---
(In reply to comment #6)
> Another simpler test case, or is this another bug?
> 
> ---
> void foo(alias f)() {
>     f();
> }
> 
> void bar() {
>         foo!({})();
> }
> 
> void main() {
>         bar();
> }
> ---
> 
> m1.d(1): Error: function m1.bar.foo!(delegate void()
> {
> }
> ).foo is a nested function and cannot be accessed from main

Maybe is another bug because this is D1 only.

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