[Issue 6963] New: pure/nothrow inference doesn't work for function pointers
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Nov 16 20:31:14 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6963
Summary: pure/nothrow inference doesn't work for function
pointers
Product: D
Version: D2
Platform: Other
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: clugdbug at yahoo.com.au
--- Comment #0 from Don <clugdbug at yahoo.com.au> 2011-11-16 20:30:27 PST ---
void foo(X)(X x)
{}
immutable void function(int) pure bar = &foo!(int);
test.d(7): Error: cannot implicitly convert expression (& foo) of type void fun
ction(int x) to immutable(void function(int) pure)
Incidentally, this code:
immutable nothrow pure bar = &foo!(int);
compiles without error, but bar isn't pure nothrow!
--
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