[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:34:52 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=5499
Leandro Lucarella <leandro.lucarella at sociomantic.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |leandro.lucarella at sociomant
| |ic.com
--- Comment #6 from Leandro Lucarella <leandro.lucarella at sociomantic.com> 2012-05-03 04:36:04 PDT ---
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
--
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