[Issue 12738] New: core.sys.posix.signal sigaction_t handler type mismatch
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon May 12 09:39:38 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=12738
Issue ID: 12738
Summary: core.sys.posix.signal sigaction_t handler type
mismatch
Product: D
Version: D2
Hardware: x86
OS: Linux
Status: NEW
Severity: regression
Priority: P1
Component: DMD
Assignee: nobody at puremagic.com
Reporter: hsteoh at quickfur.ath.cx
Code:
-----
extern(C) void myHandler(int sig) {}
void main() {
import core.sys.posix.signal;
sigaction_t n;
n.sa_handler = &myHandler;
}
-----
Compiler output:
-----
test.d(7): Error: cannot implicitly convert expression (& myHandler) of type
extern (C) void function(int sig) to extern (C) void function(int) nothrow
-----
This used to work in 2.065.0.
--
More information about the Digitalmars-d-bugs
mailing list