[Issue 8024] New: Template alias parameter is fail to compile when -inline is used
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu May 3 05:06:46 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8024
Summary: Template alias parameter is fail to compile when
-inline is used
Product: D
Version: D1
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: leandro.lucarella at sociomantic.com
--- Comment #0 from Leandro Lucarella <leandro.lucarella at sociomantic.com> 2012-05-03 05:07:59 PDT ---
---
void foo(alias f)() {
f();
}
void bar() {
foo!({})();
}
void main() {
bar();
}
---
dmd -inline -c m1.d
m1.d(1): Error: function m1.bar.foo!(delegate void()
{
}
).foo is a nested function and cannot be accessed from main
Pretty similar to bug 5499 but not the same as the failures are so different.
--
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