digitalmars.D.bugs - [Issue 12369] New: Defer semantic2 and semantic3 of function local symbols until the end of enclosing function
- d-bugmail puremagic.com (28/28) Mar 14 2014 https://d.puremagic.com/issues/show_bug.cgi?id=12369
https://d.puremagic.com/issues/show_bug.cgi?id=12369 Summary: Defer semantic2 and semantic3 of function local symbols until the end of enclosing function Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: k.hara.pg gmail.com Currently this code fails to compile by the forward reference of foo. auto foo(int) { static struct Bar { // [A] void spam() { foo(1); } } return Bar(); } Because the semantic2 and 3 of the struct Bar is immediately invoked at the declaration point [A]. But, essentially it could be compiled, by deferring the semantic2/3 after the finishing semantic3 of foo. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 14 2014