[Issue 8496] Assignment of function literal to function pointer variable with non-D linkage broken
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Sep 22 03:22:43 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8496
Kenji Hara <k.hara.pg at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|(Regression 2.060) |Assignment of function
|Assignment of function |literal to function pointer
|literal to function pointer |variable with non-D linkage
|variable with non-D linkage |broken
|broken |
Severity|regression |enhancement
--- Comment #1 from Kenji Hara <k.hara.pg at gmail.com> 2012-09-22 03:23:45 PDT ---
This is not a regression.
In 2.059, this was accidentally allowed by the cause same with bug 8397. It's
already fixed in 2.060.
(Therefore, the call of function pointer f might had been broken in 2.059)
And, lambda type inference does not infer function linkage in current
implementation. Then, (){} is always extern(D), and the error is expected.
But, it is reasonable feature. So I change the importance to 'enhancement'.
--
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